Allen Yang <[EMAIL PROTECTED]> wrote:

> > What was errno?
> 
> No error/warning messages.
> From the return value (-1), I know shared memory creation failed.

Yes, but without knowing the error put in errno by shmget(), it's difficult to
say why it failed.

> shmget(4096, 4096, IPC_CREAT|0x1b6|0666) = -1 EINVAL (Invalid argument)

strace shows that error EINVAL was returned.

> I tried putting printk() in do_shmat(), sys_shmget(), shm_init() in
> ipc/shm.c. I found that shm_init() was called, but do_shmat() and
> sys_shmget() were NOT called.

Hmmm...  Can you put a few printk()'s in arch/m68knommu/kernel/sys_m68k.c, in
sys_ipc()?  Can you print the call ID on entry, and put a printk() by each
error return so that you can tell which it returns through?

David
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to