# sem\_t - [Overview](#section243002162165637) - [Summary](#section2087719119165637) - [Data Fields](#pub-attribs) - [Details](#section512372025165637) - [Field](#section1016476050165637) - [\_\_val](#a79fdf291ed1877958bc756d78fc16cf3) ## **Overview** **Related Modules:** [IPC](IPC.md) **Description:** Defines semaphores. This structure is used to store semaphores. ## **Summary** ## Data Fields

Variable Name

Description

__val [4 *sizeof(long)/sizeof(int)]

volatile int

## **Details** ## **Field ** ## \_\_val ``` volatile int sem_t::__val[4 *sizeof(long)/sizeof(int)] ``` **Description:** Number of semaphores