OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:shm_addr
(Results
1 - 2
of
2
) sorted by null
/external/ltp/testcases/kernel/syscalls/ipc/shmat/
shmat03.c
57
static void *
shm_addr
;
variable
66
if (
shm_addr
)
67
SAFE_SHMDT(
shm_addr
);
80
shm_addr
= shmat(shm_id, ((void *)1), SHM_RND | SHM_REMAP);
81
if (
shm_addr
== (void *)-1) {
82
shm_addr
= NULL;
91
tst_res(TINFO, "Mapped shared memory to %p",
shm_addr
);
93
if (!((size_t)
shm_addr
& (~0U << 16)))
102
((char *)
shm_addr
)[0] = 'P';
104
SAFE_SHMDT(
shm_addr
);
[
all
...]
/external/autotest/client/tests/synctest/src/
synctest.c
32
char*
shm_addr
, *data_array;
local
60
shm_addr
= shmat(shm_id, NULL, 0);
61
if (!
shm_addr
) { /* operation failed. */
66
post_sync = (int*)
shm_addr
;
143
if (shmdt(
shm_addr
) == -1) {
Completed in 170 milliseconds