No subject
Wed Jun 20 18:12:30 EDT 2007
> Also, can you strace your test program to make sure that it's not the
C
> library aborting the call before the kernel is consulted?
I put the following in my test program:
shmid =3D shmget( (key_t) 0x1000, 4096, (IPC_CREAT | 0666) );
I got the following when I strace my test program:
......
shmget(4096, 4096, IPC_CREAT|0x1b6|0666) =3D -1 EINVAL (Invalid =
argument)
write(1, "SHM: Failed <-1>\n", 17SHM: Failed <-1>
) =3D 17
......
> Alternatively, you could put a printk() in do_shmat() in the kernel to
> see if it actually gets there.
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.
Do you have idea based on these information?
Thanks again for your help.
Regards,
Allen
=20
-----Original Message-----
From: uclinux-dev-bounces at uclinux.org
[mailto:uclinux-dev-bounces at uclinux.org] On Behalf Of David Howells
Sent: Thursday, July 26, 2007 5:10 AM
To: uClinux development list
Subject: Re: [uClinux-dev] uClinux supports shared memory IPC?
Allen Yang <ayang at nucomm.com> wrote:
> I am using ColdFire MCF5329EVB and uClinux (2.6.17 kernel, uClibc
> 0.9.27).
2.6.17 certainly has support for it.
Can you check CONFIG_TINY_SHMEM=3Dy and CONFIG_RAMFS=3Dy?
> The compilation was OK. However, when I downloaded to my board, the
> shared memory creation always failed. shmid was always -1.
What was errno?
Also, can you strace your test program to make sure that it's not the C
library aborting the call before the kernel is consulted?
Alternatively, you
could put a printk() in do_shmat() in the kernel to see if it actually
gets
there.
David
_______________________________________________
uClinux-dev mailing list
uClinux-dev at uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev at uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
The information contained in this email and attachments to this email =
are the proprietary and confidential property=20
of Nucomm, Inc. The information is provided in strict confidence and =
shall not be reproduced, copied, or
used (partially or wholly) in any manner without prior, express written =
authorization of Nucomm, Inc.
More information about the uClinux-dev
mailing list