2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2014 Garrett D'Amore <garrett@damore.org>
20 .Nd test for room in next message queue
32 .Fa "unsigned char pri"
40 functions atomically test for available space in the next
41 linked queue or priority band.
42 They are preferable to and safer than calling
46 directly on the queue linked to by
47 .Fa q Ns No -> Ns Fa q_next .
49 Drivers and modules should call these routines to ensure that room
50 on the next queue exists before calling
53 Architecture independent (DDI/DDK).
59 Priority band to test.
62 These functions may be called in user, kernel, or interrupt
67 If the next message queue is not full.
69 If the next message queue is full.
73 .%B "STREAMS Programming Guide"
76 .%B "Writing Device Drivers"