![]() |
![]() |
![]() |
Remove a shared memory object
#include <sys/mman.h> int shm_unlink( const char * name );
libc
The shm_unlink() function removes the name of the shared memory object specified by name. If one or more references to the shared memory object exist, then the link count is decremented, and the removal of the shared memory segment is postponed until all open and map references have been removed.
POSIX 1003.1 (Realtime Extensions)
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
errno, mmap(), munmap(), mprotect(), shm_ctl(), shm_open()
![]() |
![]() |
![]() |