summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-01-20 18:49:14 +0100
committerDaniel Mack <daniel@zonque.org>2015-01-20 18:49:14 +0100
commit52fdf2d4cbc8e437410f51692298adbb815773f5 (patch)
tree771e9319d4c97f33ba5899888ed40caac3e0cc2a
parent91acc32a5650401b25393240a3b8c4c0ad78d8b5 (diff)
downloadkdbus-bus-52fdf2d4cbc8e437410f51692298adbb815773f5.tar.gz
kdbus-bus-52fdf2d4cbc8e437410f51692298adbb815773f5.tar.bz2
kdbus-bus-52fdf2d4cbc8e437410f51692298adbb815773f5.zip
kdbus.txt: add better description about priority dequeuing
Signed-off-by: Daniel Mack <daniel@zonque.org>
-rw-r--r--kdbus.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/kdbus.txt b/kdbus.txt
index 6a00805966a..2be88a923c0 100644
--- a/kdbus.txt
+++ b/kdbus.txt
@@ -1047,7 +1047,8 @@ struct kdbus_cmd_recv {
pool slice. This a short-cut for KDBUS_RECV_PEEK and KDBUS_CMD_FREE.
KDBUS_RECV_USE_PRIORITY
- Use the priority field (see below).
+ Dequeue the messages ordered by their priority, and filtering them with
+ the priority field (see below).
__u64 kernel_flags;
Valid flags for this command, returned by the kernel upon each call.
@@ -1058,8 +1059,10 @@ struct kdbus_cmd_recv {
the kernel.
__s64 priority;
- With KDBUS_RECV_USE_PRIORITY set in flags, receive the next message in
- the queue with at least the given priority. If no such message is waiting
+ With KDBUS_RECV_USE_PRIORITY set in flags, messages will be dequeued
+ ordered by their priority, starting with the highest value. Also, messages
+ will be filtered by the value given in this field, so the returned message
+ will at least have the requested priority. If no such message is waiting
in the queue, -ENOMSG is returned.
__u64 dropped_msgs;