shmat on non-NULL address?

From: Mark K. Gardner (mkg@asimov.lanl.gov)
Date: Thu Feb 17 2000 - 17:02:03 EST


According to the man page for shmat, supplying a non-NULL shmaddr
(with or without asserting SHM_RND) should attach a shared memory
segment to the address. However, the shmat call always fails unless
supplied with a NULL shmaddr. I quickly perused the sys_shmat function
in linux/ipc/shm.c (RedHat 6.1, kernel 2.2.5) and could not tell if
non-NULL behavior is even implemented. Would someone who is more
knowledgeable about shared memory than I tell me if it is possible to
attach an existing address to shared memory? Thanks.

Mark

-- 
Mark K. Gardner
RADIANT Team
Network Engineering, CIC-5
Los Alamos National Laboratory
P.O. Box 1663, M.S. D451
Los Alamos, NM 87545
Email: mkg@lanl.gov
Phone: 1-505-665-4953
-- 

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:19 EST