* kdbus_cmd_conn_info() - retrieve info about a connection
* @conn: Connection
* @cmd_info: The command as passed in by the ioctl
- * @size: Size of the passed data structure
*
* Return: 0 on success, negative errno on failure.
*/
* the name in a notification
* @ep: Endpoint to operate on
* @conn: Connection connected to the endpoint
- * @kmsg The message carrying the notification
+ * @kmsg: The message carrying the notification
*
* This function verifies that @conn is allowed to see the well-known name
* inside a name-change notification contained in @msg via the endpoint @ep.
}
}
+/**
+ * kdbus_minor_alloc() - allocate a minor for a new kdbus device node
+ * @type: The type of device to allocate
+ * @ptr: The opaque pointer of the new device to store
+ * @out: Pointer to a dev_t for storing the result.
+ *
+ * Returns: 0 on success, in which case @out is set to the newly allocated
+ * device node.
+ */
int kdbus_minor_alloc(enum kdbus_minor_type type, void *ptr, dev_t *out)
{
int ret;
return 0;
}
+/**
+ * kdbus_minor_free() - free a minor of a kdbus device node
+ * @devt: The device node to remove
+ */
void kdbus_minor_free(dev_t devt)
{
unsigned int minor = MINOR(devt);
spin_unlock(&kdbus_minor_lock);
}
+/**
+ * kdbus_minor_set() - set an existing minor type of a kdbus device node
+ * @devt: The device node to remove
+ * @type: New type to set
+ * @ptr: Associated pointer when node was initially registered
+ */
void kdbus_minor_set(dev_t devt, enum kdbus_minor_type type, void *ptr)
{
unsigned int minor = MINOR(devt);
* struct kdbus_match_db - message filters
* @entries_list: List of matches
* @entries_lock: Match data lock
+ * @entries: Number of entries in database
*/
struct kdbus_match_db {
struct list_head entries_list;
* kdbus_match_db_add() - add an entry to the match database
* @conn: The connection that was used in the ioctl call
* @cmd: The command as provided by the ioctl call
- * @replace: If an entry with the given cookie already exists,
- * replace it with the new one.
*
* This function is used in the context of the KDBUS_CMD_MATCH_ADD ioctl
* interface.