Home
last modified time | relevance | path

Searched refs:shm_id (Results 1 – 16 of 16) sorted by relevance

/linux-6.6.21/tools/testing/selftests/powerpc/ptrace/
Dptrace-vsx.c11 int shm_id; variable
22 cptr = (int *)shmat(shm_id, NULL, 0); in vsx()
66 shm_id = shmget(IPC_PRIVATE, sizeof(int) * 2, 0777|IPC_CREAT); in ptrace_vsx()
84 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_vsx()
92 shmctl(shm_id, IPC_RMID, NULL); in ptrace_vsx()
100 shmctl(shm_id, IPC_RMID, NULL); in ptrace_vsx()
Dptrace-tm-spd-gpr.c12 int shm_id; variable
33 cptr = (int *)shmat(shm_id, NULL, 0); in tm_spd_gpr()
123 shm_id = shmget(IPC_PRIVATE, sizeof(int) * 3, 0777|IPC_CREAT); in ptrace_tm_spd_gpr()
134 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_tm_spd_gpr()
144 shmctl(shm_id, IPC_RMID, NULL); in ptrace_tm_spd_gpr()
151 shmctl(shm_id, IPC_RMID, NULL); in ptrace_tm_spd_gpr()
Dptrace-tm-spd-tar.c11 int shm_id; variable
27 cptr = (int *)shmat(shm_id, NULL, 0); in tm_spd_tar()
133 shm_id = shmget(IPC_PRIVATE, sizeof(int) * 3, 0777|IPC_CREAT); in ptrace_tm_spd_tar()
138 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_tm_spd_tar()
149 shmctl(shm_id, IPC_RMID, NULL); in ptrace_tm_spd_tar()
156 shmctl(shm_id, IPC_RMID, NULL); in ptrace_tm_spd_tar()
Dptrace-tm-spr.c17 int shm_id; variable
37 cptr = (struct shared *)shmat(shm_id, NULL, 0); in tm_spr()
118 shm_id = shmget(IPC_PRIVATE, sizeof(struct shared), 0777|IPC_CREAT); in ptrace_tm_spr()
130 pptr = (struct shared *)shmat(shm_id, NULL, 0); in ptrace_tm_spr()
140 shmctl(shm_id, IPC_RMID, NULL); in ptrace_tm_spr()
148 shmctl(shm_id, IPC_RMID, NULL); in ptrace_tm_spr()
Dptrace-tm-tar.c11 int shm_id; variable
21 cptr = (unsigned long *)shmat(shm_id, NULL, 0); in tm_tar()
121 shm_id = shmget(IPC_PRIVATE, sizeof(int) * 2, 0777|IPC_CREAT); in ptrace_tm_tar()
126 pptr = (unsigned long *)shmat(shm_id, NULL, 0); in ptrace_tm_tar()
136 shmctl(shm_id, IPC_RMID, NULL); in ptrace_tm_tar()
142 shmctl(shm_id, IPC_RMID, NULL); in ptrace_tm_tar()
Dptrace-tm-vsx.c11 int shm_id; variable
34 cptr = (unsigned long *)shmat(shm_id, NULL, 0); in tm_vsx()
117 shm_id = shmget(IPC_PRIVATE, sizeof(int) * 2, 0777|IPC_CREAT); in ptrace_tm_vsx()
135 pptr = (unsigned long *)shmat(shm_id, NULL, 0); in ptrace_tm_vsx()
143 shmctl(shm_id, IPC_RMID, NULL); in ptrace_tm_vsx()
149 shmctl(shm_id, IPC_RMID, NULL); in ptrace_tm_vsx()
Dptrace-tm-spd-vsx.c11 int shm_id; variable
47 cptr = (int *)shmat(shm_id, NULL, 0); in tm_spd_vsx()
133 shm_id = shmget(IPC_PRIVATE, sizeof(int) * 3, 0777|IPC_CREAT); in ptrace_tm_spd_vsx()
152 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_tm_spd_vsx()
160 shmctl(shm_id, IPC_RMID, NULL); in ptrace_tm_spd_vsx()
166 shmctl(shm_id, IPC_RMID, NULL); in ptrace_tm_spd_vsx()
Dptrace-gpr.c13 int shm_id; variable
28 cptr = (int *)shmat(shm_id, NULL, 0); in child()
132 shm_id = shmget(IPC_PRIVATE, sizeof(int) * 2, 0777|IPC_CREAT); in ptrace_gpr()
142 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_gpr()
150 shmctl(shm_id, IPC_RMID, NULL); in ptrace_gpr()
158 shmctl(shm_id, IPC_RMID, NULL); in ptrace_gpr()
Dptrace-tar.c11 int shm_id; variable
20 cptr = (int *)shmat(shm_id, NULL, 0); in tar()
84 shm_id = shmget(IPC_PRIVATE, sizeof(int) * 3, 0777|IPC_CREAT); in ptrace_tar()
95 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_tar()
119 shmctl(shm_id, IPC_RMID, NULL); in ptrace_tar()
Dptrace-tm-gpr.c12 int shm_id; variable
26 cptr = (unsigned long *)shmat(shm_id, NULL, 0); in tm_gpr()
117 shm_id = shmget(IPC_PRIVATE, sizeof(int) * 2, 0777|IPC_CREAT); in ptrace_tm_gpr()
127 pptr = (unsigned long *)shmat(shm_id, NULL, 0); in ptrace_tm_gpr()
140 shmctl(shm_id, IPC_RMID, NULL); in ptrace_tm_gpr()
Dptrace-pkey.c297 int shm_id; in ptrace_pkey() local
301 shm_id = shmget(IPC_PRIVATE, sizeof(*info), 0777 | IPC_CREAT); in ptrace_pkey()
302 info = shmat(shm_id, NULL, 0); in ptrace_pkey()
321 shmctl(shm_id, IPC_RMID, NULL); in ptrace_pkey()
Dcore-pkey.c410 int shm_id; in core_pkey() local
418 shm_id = shmget(IPC_PRIVATE, sizeof(*info), 0777 | IPC_CREAT); in core_pkey()
419 info = shmat(shm_id, NULL, 0); in core_pkey()
438 shmctl(shm_id, IPC_RMID, NULL); in core_pkey()
/linux-6.6.21/tools/testing/selftests/futex/functional/
Dfutex_wait.c50 int res, ret = RET_PASS, fd, c, shm_id; in main() local
97 shm_id = shmget(IPC_PRIVATE, 4096, IPC_CREAT | 0666); in main()
98 if (shm_id < 0) { in main()
103 shared_data = shmat(shm_id, NULL, 0); in main()
Dfutex_waitv.c114 int shm_id = shmget(IPC_PRIVATE, 4096, IPC_CREAT | 0666); in main() local
116 if (shm_id < 0) { in main()
121 unsigned int *shared_data = shmat(shm_id, NULL, 0); in main()
/linux-6.6.21/sound/soc/codecs/
Dcros_ec_codec.c394 uint8_t shm_id, uint32_t *len, uint8_t *type) in wov_map_shm() argument
401 p.get_shm_addr_param.shm_id = shm_id; in wov_map_shm()
439 p.set_shm_addr_param.shm_id = shm_id; in wov_map_shm()
/linux-6.6.21/include/linux/platform_data/
Dcros_ec_commands.h4536 uint8_t shm_id; member
4543 uint8_t shm_id; member