Skip to content

Commit e4ecabd

Browse files
committed
libsystemd: sync kdbus.h
1 parent 02ebe17 commit e4ecabd

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

src/libsystemd/kdbus.h

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
* the terms of the GNU Lesser General Public License as published by the
1010
* Free Software Foundation; either version 2.1 of the License, or (at
1111
* your option) any later version.
12+
*
13+
* "Everything should be made as simple as possible, but not simpler."
14+
* -- Albert Einstein
1215
*/
1316

1417
#ifndef _KDBUS_H_
@@ -327,12 +330,23 @@ struct kdbus_item {
327330
* cookie identifies the message and the
328331
* respective reply carries the cookie
329332
* in cookie_reply
333+
* @KDBUS_MSG_FLAGS_SYNC_REPLY: Wait for destination connection to
334+
* reply to this message. The
335+
* KDBUS_CMD_MSG_SEND ioctl() will block
336+
* until the reply is received, and
337+
* offset_reply in struct kdbus_msg will
338+
* yield the offset in the sender's pool
339+
* where the reply can be found.
340+
* This flag is only valid if
341+
* @KDBUS_MSG_FLAGS_EXPECT_REPLY is set as
342+
* well.
330343
* @KDBUS_MSG_FLAGS_NO_AUTO_START: Do not start a service, if the addressed
331344
* name is not currently active
332345
*/
333346
enum kdbus_msg_flags {
334347
KDBUS_MSG_FLAGS_EXPECT_REPLY = 1 << 0,
335-
KDBUS_MSG_FLAGS_NO_AUTO_START = 1 << 1,
348+
KDBUS_MSG_FLAGS_SYNC_REPLY = 1 << 1,
349+
KDBUS_MSG_FLAGS_NO_AUTO_START = 1 << 2,
336350
};
337351

338352
/**
@@ -362,6 +376,9 @@ enum kdbus_payload_type {
362376
* @cookie_reply: A reply to the requesting message with the same
363377
* cookie. The requesting connection can match its
364378
* request and the reply with this value
379+
* @offset_reply: If KDBUS_MSG_FLAGS_WAIT_FOR_REPLY, this field will
380+
* contain the offset in the sender's pool where the
381+
* reply is stored.
365382
* @items: A list of kdbus_items containing the message payload
366383
*/
367384
struct kdbus_msg {
@@ -375,6 +392,7 @@ struct kdbus_msg {
375392
union {
376393
__u64 timeout_ns;
377394
__u64 cookie_reply;
395+
__u64 offset_reply;
378396
};
379397
struct kdbus_item items[0];
380398
} __attribute__((aligned(8)));
@@ -399,7 +417,7 @@ enum kdbus_recv_flags {
399417
};
400418

401419
/**
402-
* kdbus_cmd_recv - struct to de-queue a buffered message
420+
* struct kdbus_cmd_recv - struct to de-queue a buffered message
403421
* @flags: KDBUS_RECV_* flags
404422
* @priority: Minimum priority of the messages to de-queue. Lowest
405423
* values have the highest priority.

0 commit comments

Comments
 (0)