Shmid_ds a Special Data Structure

Source: Internet
Author: User

The kernel maintains a special data structure for each shared memory segment, namely, shmid_ds, which is defined in include/Linux/SHM. h.

As follows:
Struct shmid_ds {
Struct ipc_perm shm_perm;/* operation permission */
Int shm_segsz;/* segment size (in bytes )*/
Time_t shm_atime;/* time when the last process was appended to this segment */
Time_t shm_dtime;/* time when the last process leaves the segment */
Time_t shm_ctime;/* the time when the last Process modified the segment */
Unsigned short shm_cpid;/* Create the PID of this process */
Unsigned short shm_lpid;/* PID of the last process operated on this segment */
Short shm_nattch;/* Number of processes currently appended to this segment */
/* The following is private */
Unsigned short shm_npages;/* segment size (in page )*/
Unsigned long * shm_pages;/* pointer array pointing to frames-> shmmax */
Struct vm_area_struct * attaches;/* description of shared segments */
};

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.