On Thu, 27 Apr 2000 email@example.com wrote:
> Using 2.3.99pre6-6, I noticed that SHMMAX has been moved to linux/shm.h and
> that this file is only useable if you have __KERNEL__ defined, otherwise
> the headers it includes basically blow up due to symbols such as kdev_t not
> getting defined. Was this on purpose? If not, maybe we can fix this,
> because otherwise app builders using shared memory and trying to honor
> system boundaries are going to have some problems.
SHMMAX is a default value of kernel variable called shm_ctlmax which
happens to be a sysctl tunable and therefore is available by reading from
/proc/sys/kernel/shmmax. What's wrong with reading that file (apart from
being incompatible with other OSes)?
and, obviously, including <linux/shm.h> in a user app is a very bad idea,
but nobody stops you from doing so.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:13 EST