- policy, policy for custom endpoints
- attach seclabel to names?
-
- attach policy to names? Where/how to store names from policy but
otherwise inactive names (name laceholders).
-
- find a way to specify "name prefix wildcards" like:
"com.expample.foo.* can be owned by uid foo"
- - also attach queued names to metadata?
+ - also attach queued names to message metadata?
- account and limit number of messages a connection can have in-flight
for another connection, like a connection can have a maximum of 100
* @entry: Entry in the connection's list
* @prio_node: Entry in the priority queue tree
* @prio_entry: Queue tree node entry in the list of one priority
+ * @priority: Queueing priority of the message
* @off: Offset into the shmem file in the receiver's pool
* @size: The number of bytes used in the pool
* @memfds: Arrays of offsets where to update the installed
/**
* kdbus_conn_recv_msg - receive a message from the queue
* @conn: Connection to work on
- * @buf: The returned offset to the message in the pool
+ * @recv_user: The returned offset to the message in the pool
*
* Returns: 0 on success, negative errno on failure.
*/
* @lock: Connection data lock
* @msg_list: Queue of messages
* @msg_prio_queue: Tree of messages, sorted by priority
- * @prio_highest: Cached entry for highest priority (lowest value) node
+ * @msg_prio_highest: Cached entry for highest priority (lowest value) node
* @hentry: Entry in ID <-> connection map
* @monitor_entry: The connection is a monitor
* @names_list: List of well-known names
int kdbus_conn_disconnect(struct kdbus_conn *conn, bool ensure_msg_list_empty);
int kdbus_conn_recv_msg(struct kdbus_conn *conn,
- struct kdbus_cmd_recv __user *recv);
+ struct kdbus_cmd_recv __user *recv_user);
int kdbus_cmd_conn_info(struct kdbus_conn *conn,
void __user *buf);
int kdbus_conn_kmsg_send(struct kdbus_ep *ep,
* the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation; either version 2.1 of the License, or (at
* your option) any later version.
+ *
+ * "Everything should be made as simple as possible, but not simpler."
+ * -- Albert Einstein
*/
#ifndef _KDBUS_H_
};
/**
- * kdbus_cmd_recv - struct to de-queue a buffered message
+ * struct kdbus_cmd_recv - struct to de-queue a buffered message
* @flags: KDBUS_RECV_* flags
* @priority: Minimum priority of the messages to de-queue. Lowest
* values have the highest priority.
* @f: The backing shmem file
* @size: The size of the file
* @busy: The currently used size
- * @lock Pool data lock
+ * @lock: Pool data lock
* @slices: All slices sorted by address
* @slices_busy: Tree of allocated slices
* @slices_free: Tree of free slices