chiark / gitweb /
treewide: introduce UID_INVALID (and friends) as macro for (uid_t) -1
[elogind.git] / src / libsystemd / sd-bus / kdbus.h
index ae900c27201828ed23642de2439507feb7023812..7137fc9989294db37c9a3a3005641271acf4fd11 100644 (file)
@@ -70,14 +70,14 @@ struct kdbus_notify_name_change {
  *   KDBUS_ITEM_CREDS
  */
 struct kdbus_creds {
-       __u64 uid;
-       __u64 euid;
-       __u64 suid;
-       __u64 fsuid;
-       __u64 gid;
-       __u64 egid;
-       __u64 sgid;
-       __u64 fsgid;
+       __u32 uid;
+       __u32 euid;
+       __u32 suid;
+       __u32 fsuid;
+       __u32 gid;
+       __u32 egid;
+       __u32 sgid;
+       __u32 fsgid;
 };
 
 /**
@@ -124,8 +124,8 @@ struct kdbus_caps {
  *   KDBUS_ITEM_AUDIT
  */
 struct kdbus_audit {
-       __u64 sessionid;
-       __u64 loginuid;
+       __u32 sessionid;
+       __u32 loginuid;
 };
 
 /**
@@ -494,10 +494,11 @@ enum kdbus_recv_flags {
  *                     broadcast messages that have been lost since the
  *                     last call.
  * @msg_size:          Filled by the kernel with the actual message size. This
- *                     mirrors the 'size' member of the message stored at
- *                     @offset, but allows callers to access it without mapping
- *                     their pool. By using @msg_size and @offset, you can map
- *                     only the message itself, not the whole pool.
+ *                     is the full size of the slice placed at @offset. It
+ *                     includes the memory used for the kdbus_msg object, but
+ *                     also for all appended VECs. By using @msg_size and
+ *                     @offset, you can map a single message, instead of
+ *                     mapping the whole pool.
  *
  * This struct is used with the KDBUS_CMD_MSG_RECV ioctl.
  */