sysctl: Add ctl_table_size to ctl_table_header
[sfrench/cifs-2.6.git] / include / linux / sysctl.h
index 59d451f455bfb78cf3f37fcb3ac65ecc2f6c18ce..33252ad58ebefd69dd3bdd37ef40ef6db6e04c07 100644 (file)
@@ -159,12 +159,22 @@ struct ctl_node {
        struct ctl_table_header *header;
 };
 
-/* struct ctl_table_header is used to maintain dynamic lists of
-   struct ctl_table trees. */
+/**
+ * struct ctl_table_header - maintains dynamic lists of struct ctl_table trees
+ * @ctl_table: pointer to the first element in ctl_table array
+ * @ctl_table_size: number of elements pointed by @ctl_table
+ * @used: The entry will never be touched when equal to 0.
+ * @count: Upped every time something is added to @inodes and downed every time
+ *         something is removed from inodes
+ * @nreg: When nreg drops to 0 the ctl_table_header will be unregistered.
+ * @rcu: Delays the freeing of the inode. Introduced with "unfuck proc_sysctl ->d_compare()"
+ *
+ */
 struct ctl_table_header {
        union {
                struct {
                        struct ctl_table *ctl_table;
+                       int ctl_table_size;
                        int used;
                        int count;
                        int nreg;