shared memory - userdefined data structures

Hello,

I wonder if I can write my userdefined data structures(ex: a list) to a shared memory segment?
I know, the shm functions get (void*) parameter so I should be able to read and write a list into the shared memory.
may someone inform and clarify me about that, please?

Yes you can write a list and/or data structure to shared memory.