���� ���� ���� ���� ������ ���α׷��Ӹ� ���� ���̵�

���ο� ����� �ڷ� ���� (Internal and User Data Structures)

���� �޸� ���׸�Ʈ�� ���� Ŀ�ο��� �����Ǵ� �ڷ� ������ ������ ���캸��.



Kernel shmid_ds structure

�޼��� ť �Ǵ� ������ ���տ����� ����, Ŀ���� �ּ� �������� �����ϴ� ������ ���� �޸� ���׸�Ʈ�� ���� Ư���� ���� �ڷ� ������ �����Ѵ�. �� ������ shmid_ds Ÿ������ ������ ���� linux/shm.h�� ���ǵǾ��ִ�.


	/* �ý��۾ȿ��� �� ���� �޸� ���׸�Ʈ�� ���� shmid �ڷ� ���� */
        struct shmid_ds {
                struct ipc_perm shm_perm;        /* ���� �㰡���� */
                int     shm_segsz;               /* ���׸�Ʈ�� ũ��(bytes) */
                time_t  shm_atime;               /* ������ attach �ð� */
                time_t  shm_dtime;               /* ������ detach �ð� */
                time_t  shm_ctime;               /* ������ change �ð� */
                unsigned short  shm_cpid;        /* �������� pid */
                unsigned short  shm_lpid;        /* ������ �������� pid */
                short   shm_nattch;              /* ���� attaches no. */

                                                 /* the following are private */

                unsigned short   shm_npages;     /* ���׸�Ʈ�� ũ�� (pages) */
                unsigned long   *shm_pages;      /* array of ptrs to frames -> SHMMAX */ 
                struct vm_area_struct *attaches; /* descriptors for attaches */
        };

�� �������� ������ Ư���� �ý��� ȣ�⿡ ���ظ� ����ǰ�, ���������� �ٷ�� ���� ���ƾ� �Ѵ�. ���� ���� ������ �ʵ��� ������ �ִ�.

shm_perm

�̰��� ipc-perm ����ü�� �� ����, linux/ipc.h �ȿ� ���ܵǾ��ִ�. �̰��� ���׸�Ʈ�� �����ڿ� ���� ������ ���� �㰡������ ������ ���׸�Ʈ�� ���� �㰡���� ������ ���´�.

shm_segsz

���׸�Ʈ�� ũ�� (bytes�� ������)

shm_atime

������ ���μ����� ���׸�Ʈ�� attach�� �ð�

shm_dtime

������ ���μ����� ���׸�Ʈ�� detach�� �ð�

shm_ctime

�� ������ ���������� �ٲ� �ð� (mode change, etc)

shm_cpid

������ ������� PID

shm_lpid

���׸�Ʈ���� ������ ������ ������ ���μ����� PID

shm_nattch

���� ���׸�Ʈ�� attach�� ���μ����� ��


����:�⺻ ���� (Basic Concepts) ����:�ý��� ȣ��:shmget()

Copyright (c) 1996,1997 by Euibeom.Hwang & SangEun.Oh All Rights Reserved

Email To:Webmaster , Another address
LAST UPDATE Nov 28,1997
Created Nov 28,1997