1 .\" $NetBSD: mq_notify.3,v 1.1 2009/01/05 21:19:49 rmind Exp $
3 .\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
10 .Nd notify process that a message is available (REALTIME)
16 .Fn mq_notify "mqd_t mqdes" "const struct sigevent *notification"
22 this function will register the calling process to be notified of
23 message arrival at an empty message queue associated with the
24 specified message queue descriptor,
26 The notification specified by the
28 argument will be sent to the process when the message queue
29 transitions from empty to non-empty.
30 At any time, only one process may be registered for notification
32 If the calling process or any other process has already registered
33 for notification of message arrival at the specified message queue,
34 subsequent attempts to register for that message queue fails.
40 and the process is currently registered for notification by the
41 specified message queue, the existing registration will be removed.
43 When the notification is sent to the registered process,
44 its registration will be removed.
45 The message queue will then be available for registration.
47 If a process has registered for notification of message arrival
48 at a message queue and some thread is blocked in
50 waiting to receive a message when a message arrives at the queue,
51 the arriving message will satisfy the appropriate
53 The resulting behavior is as if the message queue remains empty,
54 and no notification will be sent.
65 argument is not a valid message queue descriptor.
67 A process is already registered for notification by the message queue.
78 This function conforms to the
82 This function first appeared in
85 Portions of this text are reprinted and reproduced in electronic form
86 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
87 -- Portable Operating System Interface (POSIX), The Open Group Base
88 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
89 Electrical and Electronics Engineers, Inc and The Open Group.
91 event of any discrepancy between this version and the original IEEE and
92 The Open Group Standard, the original IEEE and The Open Group Standard
93 is the referee document.
94 The original Standard can be obtained online at
95 http://www.opengroup.org/unix/online.html .