source: rtems/cpukit/posix/include/rtems/posix/key.h @ 21242c2

4.115
Last change on this file since 21242c2 was 21242c2, checked in by Joel Sherrill <joel.sherrill@…>, on 06/24/11 at 17:52:58

2011-06-24 Joel Sherrill <joel.sherrill@…>

  • include/rtems/bspIo.h, include/rtems/concat.h, include/rtems/endian.h, include/rtems/fs.h, include/rtems/irq.h, include/rtems/pci.h, include/rtems/userenv.h, libblock/include/rtems/flashdisk.h, libblock/include/rtems/nvdisk-sram.h, libblock/include/rtems/nvdisk.h, libcsupport/include/clockdrv.h, libcsupport/include/console.h, libcsupport/include/iosupp.h, libcsupport/include/spurious.h, libcsupport/include/motorola/mc68230.h, libcsupport/include/rtems/assoc.h, libcsupport/include/rtems/error.h, libcsupport/include/rtems/framebuffer.h, libcsupport/include/rtems/gxx_wrappers.h, libcsupport/include/rtems/libcsupport.h, libcsupport/include/rtems/libio_.h, libcsupport/include/rtems/malloc.h, libcsupport/include/rtems/termiostypes.h, libcsupport/include/sys/statvfs.h, libcsupport/include/sys/termios.h, libcsupport/include/sys/utsname.h, libcsupport/include/zilog/z8036.h, libcsupport/include/zilog/z8530.h, libcsupport/include/zilog/z8536.h, libfs/src/imfs/imfs.h, libfs/src/pipe/pipe.h, libmisc/capture/capture-cli.h, libmisc/capture/capture.h, libmisc/cpuuse/cpuuse.h, libmisc/devnull/devnull.h, libmisc/devnull/devzero.h, libmisc/dumpbuf/dumpbuf.h, libmisc/fb/fb.h, libmisc/fb/mw_uid.h, libmisc/mouse/mouse_parser.h, libmisc/shell/shellconfig.h, libmisc/stringto/stringto.h, libmisc/untar/untar.h, libnetworking/memory.h, posix/include/aio.h, posix/include/mqueue.h, posix/include/semaphore.h, posix/include/rtems/posix/aio_misc.h, posix/include/rtems/posix/barrier.h, posix/include/rtems/posix/cond.h, posix/include/rtems/posix/config.h, posix/include/rtems/posix/key.h, posix/include/rtems/posix/mqueue.h, posix/include/rtems/posix/mutex.h, posix/include/rtems/posix/posixapi.h, posix/include/rtems/posix/priority.h, posix/include/rtems/posix/psignal.h, posix/include/rtems/posix/pthread.h, posix/include/rtems/posix/ptimer.h, posix/include/rtems/posix/rwlock.h, posix/include/rtems/posix/semaphore.h, posix/include/rtems/posix/sigset.h, posix/include/rtems/posix/spinlock.h, posix/include/rtems/posix/threadsup.h, posix/include/rtems/posix/time.h, posix/include/rtems/posix/timer.h, posix/inline/rtems/posix/barrier.inl, posix/inline/rtems/posix/cond.inl, posix/inline/rtems/posix/mqueue.inl, posix/inline/rtems/posix/mutex.inl, posix/inline/rtems/posix/priority.inl, posix/inline/rtems/posix/pthread.inl, posix/inline/rtems/posix/rwlock.inl, posix/inline/rtems/posix/semaphore.inl, posix/inline/rtems/posix/spinlock.inl, posix/inline/rtems/posix/timer.inl, rtems/mainpage.h, rtems/include/rtems/rtems/barrier.h, rtems/include/rtems/rtems/object.h, rtems/include/rtems/rtems/timer.h, rtems/inline/rtems/rtems/barrier.inl, rtems/inline/rtems/rtems/timer.inl, rtems/src/semtranslatereturncode.c, sapi/include/rtems/config.h, sapi/include/rtems/fatal.h, sapi/include/rtems/mptables.h, score/include/rtems/score/object.h, score/include/rtems/score/priority.h, score/inline/rtems/score/object.inl, score/inline/rtems/score/priority.inl: Add @file Doxygen directives and descriptions to files which originated with RTEMS. This improves the file list page generated by Doxygen.
  • Property mode set to 100644
File size: 2.4 KB
Line 
1/**
2 * @file rtems/posix/key.h
3 *
4 * This include file contains all the private support information for
5 * POSIX key.
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2011.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 *
16 *  $Id$
17 */
18
19#ifndef _RTEMS_POSIX_KEY_H
20#define _RTEMS_POSIX_KEY_H
21
22#include <rtems/score/object.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28/**
29 *  This is the data Structure used to manage a POSIX key.
30 *
31 *  @note The Values is a table indexed by the index portion of the
32 *        ID of the currently executing thread.
33 */
34typedef struct {
35   /** This field is the Object control structure. */
36   Objects_Control     Object;
37   /** This field points to the optional destructor method. */
38   void              (*destructor)( void * );
39   /** This field points to the values per thread. */
40   void              **Values[ OBJECTS_APIS_LAST + 1 ];
41}  POSIX_Keys_Control;
42
43/**
44 *  The following defines the information control block used to manage
45 *  this class of objects.
46 */
47POSIX_EXTERN Objects_Information  _POSIX_Keys_Information;
48
49/**
50 *  @brief _POSIX_Keys_Manager_initialization
51 *
52 *  This routine performs the initialization necessary for this manager.
53 */
54void _POSIX_Key_Manager_initialization(void);
55
56/**
57 *  @brief _POSIX_Keys_Run_destructors
58 *
59 *  This function executes all the destructors associated with the thread's
60 *  keys.  This function will execute until all values have been set to NULL.
61 *
62 *  @param[in] thread is the thread whose keys should have all their
63 *             destructors run.
64 *
65 *  @note This is the routine executed when a thread exits to
66 *        run through all the keys and do the destructor action.
67 */
68void _POSIX_Keys_Run_destructors(
69  Thread_Control *thread
70);
71
72/**
73 *  @brief Free Key Memory
74 *
75 *  This memory frees the key table memory associated with @a the_key.
76 *
77 *  @param[in] the_key is the POSIX key to free the table memory of.
78 */
79void _POSIX_Keys_Free_memory(
80  POSIX_Keys_Control *the_key
81);
82
83/**
84 *  @brief _POSIX_Keys_Free
85 *
86 *  This routine frees a keys control block to the
87 *  inactive chain of free keys control blocks.
88 *
89 *  @param[in] the_key is the POSIX key to free.
90 */
91RTEMS_INLINE_ROUTINE void _POSIX_Keys_Free (
92  POSIX_Keys_Control *the_key
93);
94
95#include <rtems/posix/key.inl>
96
97#ifdef __cplusplus
98}
99#endif
100
101#endif
102/*  end of include file */
Note: See TracBrowser for help on using the repository browser.