FPGARelated.com
Forums

Xilkernel: Using the shared memory API

Started by Unknown July 25, 2006
Hi peoples,
This could be a stupid question and I sincerely hope not. I'm not a
coder -- I'm a EE signal/systems kid who's picked up the skill lightly
over the years out of neccessity (never really did it as a hobby often
either). Not to say I don't like coding -- just never had the time to
explore it so much in my free time.

ANYWAYS. Onto the question -- it's geared towards those who work with
xilkernel. I have the whole pthread/mutex/semaphore thing down, but the
shared-memory API documentation is...lacking. I know how to instantiate
it and call the functions, etc., but how do I <i>write</i> and
<i>read</i> data from it!?

There is a data struct, but it does not contain a payload/buffer --
just some basic information about the shared memory. I've also googled
around quite a bit for xilkernel shared memory stuff, but with
absolutely no luck finding anything tangible that could help me out.

So -- any xilkernel coders out there who've worked with shared mem who
might be able to help me? Thanks for your time all!
-Scott Novich

NEVERMIND.

function void* shmat returns the start addr. of the shared mem. segment
on success.

I always understand things moments after I email/post about them --
does this happen to anyone else? Sorry.
-Scott

MKULTRA2@gmail.com wrote:
> Hi peoples, > This could be a stupid question and I sincerely hope not. I'm not a > coder -- I'm a EE signal/systems kid who's picked up the skill lightly > over the years out of neccessity (never really did it as a hobby often > either). Not to say I don't like coding -- just never had the time to > explore it so much in my free time. > > ANYWAYS. Onto the question -- it's geared towards those who work with > xilkernel. I have the whole pthread/mutex/semaphore thing down, but the > shared-memory API documentation is...lacking. I know how to instantiate > it and call the functions, etc., but how do I <i>write</i> and > <i>read</i> data from it!? > > There is a data struct, but it does not contain a payload/buffer -- > just some basic information about the shared memory. I've also googled > around quite a bit for xilkernel shared memory stuff, but with > absolutely no luck finding anything tangible that could help me out. > > So -- any xilkernel coders out there who've worked with shared mem who > might be able to help me? Thanks for your time all! > -Scott Novich