�������: ������ (���� | �����������) ��RU opennet.me  
The OpenNET Project / Index page

[ ������� /+++ | ����� | ���� | ]

������� ������������ / ������ "������������ ��� Linux" / ���������� ���������
next up previous contents index
Next: ������������ ��������� Up: ������������� �������� Previous: ������������� ��������   Contents   Index

������������� ���������

��� �������� ���������� ���������� ������ shmat() ��������� ����� ������, ������� ������� �������������� �������; � ������ ������� ������������ -1. ����������, ����� ������������ ��������� shmat() ��� ���������, ��� ����� ������������� � ���������� ����.

� �������� ��������� shmid ������ ��������� ������������� ������������ ��������, �������������� ���������� ��� ������ ���������� ������ shmget.

�������� shmaddr ������ �����, �� �������� ������� ������ ���� �����������, �� ���� ��� ����� � ����������� ������������ ������������, ������� ������� ������ ��������. �� ������ ����� �������� ����������. ����� ��������������� ������ ����

        0x80000000
        0x80040000
        0x80080000
         . . .
���� �������� shmaddr ����� ����, ������� �������� ����� ������������� �� ������ ����������.

�������� shmflg ������������ ��� �������� ���������� ������ shmat() ������ SHM_RND � SHM_RDONLY. ������� ������� �� ��� ��������, ��� ����� shmaddr ������� ��������� �� �������� ��������-��������� ��������. ������ ���� ������������ ������������ ������� ������ ��� ������; ���� �� �� ����������, �������������� ������� ����� �������� � �� ������, � �� ������ (���� ������� �������� ���������������� �������).



Alex Otwagin 2002-12-16



������:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
�������:

�������� �� �����
���������� �� ���������
Created 1996-2026 by Maxim Chirkov
��������, ����������, ����������