Re: do-nothing code in sysv_shm.c

2005-05-12 Thread John Baldwin
On Monday 11 April 2005 12:03 pm, Vladislav Shabanov wrote: > I`ve found the following code in sysv_shm.c : > > > static void > shminit() > { > int i; > > TUNABLE_INT_FETCH("kern.ipc.shmmaxpgs", &shminfo.shmall); > for (i = PAGE_SIZE; i > 0; i--) { >

Re: do-nothing code in sysv_shm.c

2005-04-12 Thread Divacky Roman
On Mon, Apr 11, 2005 at 08:03:24PM +0400, Vladislav Shabanov wrote: > I`ve found the following code in sysv_shm.c : > > > static void > shminit() > { > int i; > > TUNABLE_INT_FETCH("kern.ipc.shmmaxpgs", &shminfo.shmall); > for (i = PAGE_SIZE; i > 0; i--) { >

do-nothing code in sysv_shm.c

2005-04-11 Thread Vladislav Shabanov
I`ve found the following code in sysv_shm.c : static void shminit() { int i; TUNABLE_INT_FETCH("kern.ipc.shmmaxpgs", &shminfo.shmall); for (i = PAGE_SIZE; i > 0; i--) { shminfo.shmmax = shminfo.shmall * PAGE_SIZE; if (shminfo.sh