MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / shm_id_free

Function shm_id_free

components/lwp/lwp_shm.c:101–106  ·  view source on GitHub ↗

Release the item in the static array to the freed list. */

Source from the content-addressed store, hash-verified

99
100/* Release the item in the static array to the freed list. */
101static void shm_id_free(int id)
102{
103 /* link the freed itme to the single-direction list */
104 _shm_ary[id].addr = (size_t)shm_free_list;
105 shm_free_list = id;
106}
107
108/* Locate the shared memory through 'key' or create a new one. */
109static int _lwp_shmget(size_t key, size_t size, int create)

Callers 2

_lwp_shmgetFunction · 0.85
_lwp_shmrmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected