Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

Problem with Shmget in Nios-uClinux

I am using " Altera Stratix 1S10 Development Kit".

I am using this uClinux 2.6.11 i.e., the latest version, "v1.4", released on this forum site.

I am able to use sockets n this environment. But while creating the shared memory of 512 Bytes using Shmget, I am getting an error message: http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif

" Invalid Agument"

I reduced the size, but still the pronlem is persisting. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif

I used the following parameters for shmget:

shmget(key, 512, IPC_CREAT | 0666 ); http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif

Best Regards,

K V Naresh

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I wonder if this is a bug of kernel or uclibc .

    you may try newer version .