Re: Question about the ipc structure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi,
  Here is the URL
http://www.moses.uklinux.net/patches/lki-5.html

Regards 
Dharmender Rai
 --- MAASK Group <maask12345@hotmail.com> wrote: > Hi,
> 
>    I have been trying to get the shared memory and
> IPC part of the 
> Linux-2.4.19 kernel... Does anyone know the
> significance of the 'seq' and 
> 'seq_max' variables in the following ipc_ids
> structure?? Also what are the 
> values it takes and when is it initialised??
> 
> struct ipc_ids {
>         int size;
>         int in_use;
>         int max_id;
>         unsigned short seq;     <--------- ??
>         unsigned short seq_max; <--------- ??
>         struct semaphore sem;
>         spinlock_t ary;
>         struct ipc_id* entries;
> };
> 
> Also, I could not understand the significance of the
> ipc_buildid() function 
> which converts the id to a bigger value (both the
> input id and the output id 
> to the function are unique which is a sufficient
> requirement of the id). 
> This functiona makes use of the 'seq' and
> SEQ_MULTIPLIER (whose value is 
> 32768) to generate this bigger value.
> 
> Could it be made to work without this buildid()
> function??
> 
> Thanks in advance,
> Asmita from MAASK group
> 
> 
> 
> 
>
_________________________________________________________________
> Get a speedy connection with MSN Broadband.  Join
> now! 
>
http://resourcecenter.msn.com/access/plans/freeactivation.asp
> 
> --
> Kernelnewbies: Help each other learn about the Linux
> kernel.
> Archive:      
> http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
>  

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux