ipc



Liczniki odwiedzin | Księgi gości | Metal Lyrics | Znaczenie imion | Konwerter | Wolne domeny | Informacje o samochodach | Zakupy w UK | | | | | | | wyposażenie warsztatów | Wypoczynek nad jeziorami




NAME

       ipc - System V interprocess communication mechanisms


SYNOPSIS

       # include <sys/types.h>
       # include <sys/ipc.h>
       # include <sys/msg.h>
       # include <sys/sem.h>
       # include <sys/shm.h>


DESCRIPTION

       The  manual page refers to the Linux implementation of the
       System V interprocess  communication  mechanisms:  message
       queues, semaphore sets and shared memory segments.  In the
       following, the word resource means an instantiation of one
       among such mechanisms.

   Resource Access Permissions
       For  each  resource  the system uses a common structure of
       type struct ipc_perm to store information needed in deter-
       mining  permissions  to  perform  an  ipc  operation.  The
       ipc_perm structure,  defined  by  the  <sys/ipc.h>  system
       header file, includes the following members:

            ushort cuid;    /* creator user id */
            ushort cgid;    /* creator group id */
            ushort uid; /* owner user id */
            ushort gid; /* owner group id */
            ushort mode; /* r/w permissions */

       The  mode  member  of the ipc_perm structure defines, with
       its lower 9 bits, the access permissions to  the  resource
       for  a  process executing an ipc system call.  The permis-
       sions are interpreted as follows:

            0400 Read by user.
            0200 Write by user.
            0040 Read by group.
            0020 Write by group.
            0004 Read by others.
            0002 Write by others.

       Bits 0100, 0010 and 0001 (the execute bits) are unused  by
       the system.  Furthermore "write" effectively means "alter"
       for a semaphore set.

       The same system header file  defines  also  the  following
       symbolic constants:

       IPC_CREAT     Create entry if key doesn't exists.

       IPC_EXCL      Fail if key exists.

       IPC_NOWAIT    Error if request must wait.
       IPC_PRIVATE   Private key.

       IPC_RMID      Remove resource.

       IPC_SET       Set resource options.

       IPC_STAT      Get resource options.

       Note  that IPC_PRIVATE is a key_t type, while all the oth-
       ers symbolic constants are flag fields or-able into an int
       type variable.

   Message Queues
       A message queue is uniquely identified by a positive inte-
       ger ( its msqid) and has an associated data  structure  of
       type  struct msquid_ds, defined in <sys/msg.h>, containing
       the following members:

            struct ipc_perm msg_perm;
            ushort msg_qnum;     /* no of messages on queue */
            ushort msg_qbytes;   /* bytes max on a queue */
            ushort msg_lspid;    /* pid of last msgsnd call */
            ushort msg_lrpid;    /* pid of last msgrcv call */
            time_t msg_stime;    /* last msgsnd time */
            time_t msg_rtime;    /* last msgrcv time */
            time_t msg_ctime;    /* last change time */

       msg_perm   ipc_perm structure that  specifies  the  access
                  permissions on the message queue.

       msg_qnum   Number  of  messages  currently  on the message
                  queue.

       msg_qbytes Maximum number of bytes of message text allowed
                  on the message queue.

       msg_lspid  ID  of  the  process  that  performed  the last
                  msgsnd system call.

       msg_lrpid  ID of  the  process  that  performed  the  last
                  msgrcv system call.

       msg_stime  Time of the last msgsnd system call.

       msg_rtime  Time of the last msgcv system call.

       msg_ctime  Time  of  the  last  system call that changed a
                  member of the msqid_ds structure.

   Semaphore Sets
       A semaphore set is uniquely identified by a positive inte-
       ger  (  its semid) and has an associated data structure of
       type struct semid_ds, defined in  <sys/sem.h>,  containing
       the following members:
            struct ipc_perm sem_perm;
            time_t sem_otime;    /* last operation time */
            time_t sem_ctime;    /* last change time */
            ushort sem_nsems;    /* count of sems in set */

       sem_perm   ipc_perm  structure  that  specifies the access
                  permissions on the semaphore set.

       sem_otime  Time of last semop system call.

       sem_ctime  Time of last semctl system call that changed  a
                  member   of  the  above  structure  or  of  one
                  semaphore belonging to the set.

       sem_nsems  Number  of  semaphores  in   the   set.    Each
                  semaphore  of  the  set is referenced by a non-
                  negative integer ranging from 0 to sem_nsems-1.

       A  semaphore  is  a data structure of type struct sem con-
       taining the following members:

            ushort semval;  /* semaphore value */
            short sempid;   /* pid for last operation */
            ushort semncnt;      /* no.  of  awaiting  semval  to
       increase */
            ushort semzcnt;      /* no. of awaiting semval = 0 */

       semval     Semaphore value: a non-negative integer.

       sempid     ID  of  the  last  process  that  performed   a
                  semaphore operation on this semaphore.

       semncnt    Number of processes suspended awaiting for sem-
                  val to increase.

       semznt     Number of processes suspended awaiting for sem-
                  val to become zero.

   Shared Memory Segments
       A  shared memory segment is uniquely identified by a posi-
       tive integer (its shmid) and has an associated data struc-
       ture of type struct shmid_ds, defined in <sys/shm.h>, con-
       taining the following members:

            struct ipc_perm shm_perm;
            int shm_segsz;  /* size of segment */
            ushort shm_cpid;     /* pid of creator */
            ushort shm_lpid;     /* pid, last operation */
            short shm_nattch;    /* no. of current attaches */
            time_t shm_atime;    /* time of last attach */
            time_t shm_dtime;    /* time of last detach */
            time_t shm_ctime;    /* time of last change */

       shm_perm   ipc_perm structure that  specifies  the  access
                  permissions on the shared memory segment.

       shm_segsz  Size in bytes of the shared memory segment.

       shm_cpid   ID  of the process that created the shared mem-
                  ory segment.

       shm_lpid   ID of the last process that executed a shmat or
                  shmdt system call.

       shm_nattch Number  of  current  alive  attaches  for  this
                  shared memory segment.

       shm_atime  Time of the last shmat system call.

       shm_dtime  Time of the last shmdt system call.

       shm_ctime  Time  of  the  last  shmctl  system  call  that
                  changed shmid_ds.


SEE ALSO

       ftok(3),  msgctl(2), msgget(2), msgrcv(2), msgsnd(2), sem-
       ctl(2),   semget(2),   semop(2),   shmat(2),    shmctl(2),
       shmget(2), shmdt (2).

  Księgarnia

- Oferta księgarni Mentis
- Oferta księgarni Onepress
- Linux Manual (english)
- Konstytucje
- Kręgosłup, bóle karku
- Elektroniczne książki
- Prasa elektroniczna
- Gry RPG, figurki
- darmowy słownik on-line
- jubiler - biżuteria
- polityka prywatności





Linux - Welsh Matt, Dalheimer Matthias Kalle, Kaufman Lar Linux
Autor: Welsh Matt, Dalheimer Matthias Kalle, Kaufman Lar
Cena: 85.44
Rok wydania: 2000
Wydawnictwo: Read Me
Ilość stron: 700
Linux - bezpieczeństwo serwerów - Michael D.Bauer Linux - bezpieczeństwo serwerów
Autor: Michael D.Bauer
Cena: 58.88
Rok wydania: 2003
Wydawnictwo: Read Me
Ilość stron: 488
Linux kernel - Daniel P. Bovet, Marco Cesati Linux kernel
Autor: Daniel P. Bovet, Marco Cesati
Cena: 85.44
Rok wydania: 2001
Wydawnictwo: Read Me
Ilość stron: 634
Linux. Programowanie dla zaawansowanych - Mark Mitchell. Jeffrey Oldham, Alex Samuel Linux. Programowanie dla zaawansowanych
Autor: Mark Mitchell. Jeffrey Oldham, Alex Samuel
Cena: 42.32
Rok wydania: 2002
Wydawnictwo: Read Me
Ilość stron: 300
Linux: Systemy plików - Moshe Bar Linux: Systemy plików
Autor: Moshe Bar
Cena: 51.52
Rok wydania: 2002
Wydawnictwo: Read Me
Ilość stron: 332
Linux. Archiwizacja danych - Leszek Madeja Linux. Archiwizacja danych
Autor: Leszek Madeja
Cena: 17.60
Rok wydania: 2003
Wydawnictwo: Mikom
Ilość stron:
Linux i galanteria SCSI - Leszek Madeja Linux i galanteria SCSI
Autor: Leszek Madeja
Cena: 10.80
Rok wydania: 2003
Wydawnictwo: Mikom
Ilość stron: 88
Bezpieczeństwo systemu Linux - Ramón J. Honta&ntilde;ón Bezpieczeństwo systemu Linux
Autor: Ramón J. Honta&ntilde;ón
Cena: 44.62
Rok wydania: 2002
Wydawnictwo: Mikom
Ilość stron: 464
Korzystanie z drukarki. Ćwiczenia z systemu Linux - Leszek Madeja Korzystanie z drukarki. Ćwiczenia z systemu Linux
Autor: Leszek Madeja
Cena: 16.80
Rok wydania: 2000
Wydawnictwo: Mikom
Ilość stron: 192
Korzystanie z pomocy. Ćwiczenia z systemu Linux - Leszek Madeja Korzystanie z pomocy. Ćwiczenia z systemu Linux
Autor: Leszek Madeja
Cena: 15.40
Rok wydania: 2000
Wydawnictwo: Mikom
Ilość stron: 152
Linux - książka kucharska - Michael Stutz Linux - książka kucharska
Autor: Michael Stutz
Cena: 47.84
Rok wydania: 2002
Wydawnictwo: Mikom
Ilość stron: 488
Linux. Gniazda w programowaniu - Woren W. Gay Linux. Gniazda w programowaniu
Autor: Woren W. Gay
Cena: 47.29
Rok wydania: 2001
Wydawnictwo: Mikom
Ilość stron: 552
LINUX. Rozwiązywanie problemów - Brian Ward LINUX. Rozwiązywanie problemów
Autor: Brian Ward
Cena: 33.92
Rok wydania: 2001
Wydawnictwo: Mikom
Ilość stron: 312
Midnight Commander. Ćwiczenia z systemu Linux - Leszek Madeja Midnight Commander. Ćwiczenia z systemu Linux
Autor: Leszek Madeja
Cena: 23.80
Rok wydania: 2000
Wydawnictwo: Mikom
Ilość stron: 272
Red Hat Linux 6.2 same konkrety - Bob Rankin Red Hat Linux 6.2 same konkrety
Autor: Bob Rankin
Cena: 39.74
Rok wydania: 2000
Wydawnictwo: Mikom
Ilość stron: 372
Caldera Linux 2.3 dla każdego - Bill Ball Caldera Linux 2.3 dla każdego
Autor: Bill Ball
Cena: 49.00
Rok wydania: 2000
Wydawnictwo: Helion
Ilość stron: 400
Linux. Praktyczne rozwiązania - Adam Podstawczyński Linux. Praktyczne rozwiązania
Autor: Adam Podstawczyński
Cena: 35.00
Rok wydania: 2000
Wydawnictwo: Helion
Ilość stron: 248
Red Hat Linux 7.3. Księga eksperta - Bill Ball Red Hat Linux 7.3. Księga eksperta
Autor: Bill Ball
Cena: 110.00
Rok wydania: 2002
Wydawnictwo: Helion
Ilość stron: 752
Linux w sieci - Adam Podstawczyński Linux w sieci
Autor: Adam Podstawczyński
Cena: 39.00
Rok wydania: 2002
Wydawnictwo: Helion
Ilość stron: 224
Red Hat Linux 7.2. Ćwiczenia praktyczne - Jerzy Marczyński Red Hat Linux 7.2. Ćwiczenia praktyczne
Autor: Jerzy Marczyński
Cena: 18.00
Rok wydania: 2002
Wydawnictwo: Helion
Ilość stron: 176






ksiegarnia.pila.pl exists since 2005 year.
Provided by: Przemysław Krajniak, PHP Scripts