kerneldoc: remove KDBUS_CMD_EP_POLICY_SET, add KDBUS_CMD_EP_UPDATE
authorKay Sievers <kay@vrfy.org>
Wed, 26 Mar 2014 03:06:47 +0000 (04:06 +0100)
committerKay Sievers <kay@vrfy.org>
Wed, 26 Mar 2014 03:10:32 +0000 (04:10 +0100)
handle.c
kdbus.h

index 93be73b16e4ccbb69542b755ce47cc7c0b78ac2a..8082241c8a6a5dd01fb2c97836c6103c481ffb2f 100644 (file)
--- a/handle.c
+++ b/handle.c
@@ -621,7 +621,7 @@ static long kdbus_handle_ioctl_ep_connected(struct file *file, unsigned int cmd,
        }
 
        case KDBUS_CMD_CONN_UPDATE:
-               /* update flags for a connection */
+               /* update the properties of a connection */
                ret = kdbus_memdup_user(buf, &p, NULL,
                                        sizeof(struct kdbus_cmd_update),
                                        sizeof(struct kdbus_cmd_update) +
@@ -768,11 +768,11 @@ static long kdbus_handle_ioctl_ep_owner(struct file *file, unsigned int cmd,
        case KDBUS_CMD_EP_UPDATE: {
                struct kdbus_cmd_update *cmd;
 
-               /* update flags for a connection */
+               /* update the properties of a custom endpoint */
                ret = kdbus_memdup_user(buf, &p, NULL,
                                        sizeof(struct kdbus_cmd_update),
                                        sizeof(struct kdbus_cmd_update) +
-                                               KDBUS_UPDATE_MAX_SIZE);
+                                              KDBUS_UPDATE_MAX_SIZE);
                if (ret < 0)
                        break;
 
@@ -788,7 +788,6 @@ static long kdbus_handle_ioctl_ep_owner(struct file *file, unsigned int cmd,
        }
 
        kfree(p);
-
        return ret;
 }
 
diff --git a/kdbus.h b/kdbus.h
index 9f7e2261f8c9d6f69ea6d26dbd142a3c365ed29a..f128d3ba27285025815cd5a1b137f194ba6fc5fd 100644 (file)
--- a/kdbus.h
+++ b/kdbus.h
@@ -793,13 +793,13 @@ struct kdbus_cmd_memfd_make {
  *                             necessarily represent the connected process or
  *                             the actual state of the process.
  * @KDBUS_CMD_CONN_UPDATE:     Update the properties of a connection. Used to
- *                             update the metadata subscription.
+ *                             update the metadata subscription mask and
+ *                             policy.
+ * @KDBUS_CMD_EP_UPDATE:       Update the properties of a custom enpoint. Used
+ *                             to update the policy.
  * @KDBUS_CMD_MATCH_ADD:       Install a match which broadcast messages should
  *                             be delivered to the connection.
  * @KDBUS_CMD_MATCH_REMOVE:    Remove a current match for broadcast messages.
- * @KDBUS_CMD_EP_POLICY_SET:   Set the policy of an endpoint. It is used to
- *                             restrict the access for endpoints created with
- *                             KDBUS_CMD_EP_MAKE.
  * @KDBUS_CMD_MEMFD_NEW:       Return a new file descriptor which provides an
  *                             anonymous shared memory file and which can be
  *                             used to pass around larger chunks of data.