@@ -1310,37 +1310,31 @@ static struct ctl_dir *sysctl_mkdir_p(struct ctl_dir *dir, const char *path)
1310
1310
* __register_sysctl_table - register a leaf sysctl table
1311
1311
* @set: Sysctl tree to register on
1312
1312
* @path: The path to the directory the sysctl table is in.
1313
- * @table: the top-level table structure without any child. This table
1314
- * should not be free'd after registration. So it should not be
1315
- * used on stack. It can either be a global or dynamically allocated
1316
- * by the caller and free'd later after sysctl unregistration.
1313
+ *
1314
+ * @table: the top-level table structure. This table should not be free'd
1315
+ * after registration. So it should not be used on stack. It can either
1316
+ * be a global or dynamically allocated by the caller and free'd later
1317
+ * after sysctl unregistration.
1317
1318
* @table_size : The number of elements in table
1318
1319
*
1319
1320
* Register a sysctl table hierarchy. @table should be a filled in ctl_table
1320
1321
* array. A completely 0 filled entry terminates the table.
1321
1322
*
1322
1323
* The members of the &struct ctl_table structure are used as follows:
1323
- *
1324
1324
* procname - the name of the sysctl file under /proc/sys. Set to %NULL to not
1325
1325
* enter a sysctl file
1326
- *
1327
- * data - a pointer to data for use by proc_handler
1328
- *
1329
- * maxlen - the maximum size in bytes of the data
1330
- *
1331
- * mode - the file permissions for the /proc/sys file
1332
- *
1333
- * child - must be %NULL.
1334
- *
1326
+ * data - a pointer to data for use by proc_handler
1327
+ * maxlen - the maximum size in bytes of the data
1328
+ * mode - the file permissions for the /proc/sys file
1329
+ * type - Defines the target type (described in struct definition)
1335
1330
* proc_handler - the text handler routine (described below)
1336
1331
*
1337
1332
* extra1, extra2 - extra pointers usable by the proc handler routines
1338
1333
* XXX: we should eventually modify these to use long min / max [0]
1339
1334
* [0] https://lkml.kernel.org/87zgpte9o4.fsf@email.froward.int.ebiederm.org
1340
1335
*
1341
1336
* Leaf nodes in the sysctl tree will be represented by a single file
1342
- * under /proc; non-leaf nodes (where child is not NULL) are not allowed,
1343
- * sysctl_check_table() verifies this.
1337
+ * under /proc; non-leaf nodes are not allowed.
1344
1338
*
1345
1339
* There must be a proc_handler routine for any terminal nodes.
1346
1340
* Several default handlers are available to cover common cases -
0 commit comments