Chapter 52. POSIX Message Queues

This chapter describes POSIX message queues, which allow processes to exchange data in the form of messages. POSIX message queues are similar to their System V counterparts, in that data is exchanged in units of whole messages. However, there are also some notable differences:

POSIX message queues are a relatively recent addition to Linux. The required implementation support was added in kernel 2.6.6 (in addition, glibc 2.3.4 or later is required).

Note

POSIX message queue support is an optional kernel component that is configured via the CONFIG_POSIX_MQUEUE option.

The main functions in the POSIX message queue API are the following:

The above functions all serve fairly obvious purposes. In addition, a couple of features are peculiar to the POSIX message queue API: