shm_open같은 shm_으로 시작하는 애들은 정체가...
POSIX 관련인가.. shm은 리눅스 쪽?
$ man -k shm shm_open (3) - Create/open or unlink POSIX shared memory objects shm_overview (7) - Overview of POSIX shared memory shm_unlink (3) - Create/open or unlink POSIX shared memory objects shmat (2) - shared memory operations shmctl (2) - shared memory control shmdt (2) - shared memory operations shmget (2) - allocates a shared memory segment shmop (2) - shared memory operations |
#include <sys/ipc.h> #include <sys/shm.h> int shmget(key_t key, size_t size, int shmflg); shmflg = IPC_CREAT | IPC_EXCL; void *shmat(int shmid, const void *shmaddr, int shmflg); int shmdt(const void *shmaddr); int shmctl(int shmid, int cmd, struct shmid_ds *buf); |
#include <sys/types.h> #include <sys/shm.h> void *shmat(int shmid, const void *shmaddr, int shmflg); int shmdt(const void *shmaddr); |
다시 보니.. shm은 SystemV 계열
shm_ 은 POSIX 계열 인듯?
[링크 : http://stackoverflow.com/questions/4582968/system-v-ipc-vs-posix-ipc]
'Linux API > linux' 카테고리의 다른 글
전원버튼 IRQ 발생 관련 (0) | 2018.04.23 |
---|---|
linux kernel governor 관련 코드 (0) | 2018.04.17 |
linux ipc (0) | 2016.12.20 |
pthread detach while (0) | 2016.12.20 |
fd <-> fp 변환 (0) | 2016.10.07 |