Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit a02fe70

Browse files
committed
sysctl: Remove "child" sysctl code comments
Erase the code comments mentioning "child" that were forgotten when the child element was removed in commit 2f2665c ("sysctl: replace child with an enumeration"). Signed-off-by: Joel Granados <j.granados@samsung.com>
1 parent aef9d25 commit a02fe70

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

fs/proc/proc_sysctl.c

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,37 +1310,31 @@ static struct ctl_dir *sysctl_mkdir_p(struct ctl_dir *dir, const char *path)
13101310
* __register_sysctl_table - register a leaf sysctl table
13111311
* @set: Sysctl tree to register on
13121312
* @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.
13171318
* @table_size : The number of elements in table
13181319
*
13191320
* Register a sysctl table hierarchy. @table should be a filled in ctl_table
13201321
* array. A completely 0 filled entry terminates the table.
13211322
*
13221323
* The members of the &struct ctl_table structure are used as follows:
1323-
*
13241324
* procname - the name of the sysctl file under /proc/sys. Set to %NULL to not
13251325
* 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)
13351330
* proc_handler - the text handler routine (described below)
13361331
*
13371332
* extra1, extra2 - extra pointers usable by the proc handler routines
13381333
* XXX: we should eventually modify these to use long min / max [0]
13391334
* [0] https://lkml.kernel.org/87zgpte9o4.fsf@email.froward.int.ebiederm.org
13401335
*
13411336
* 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.
13441338
*
13451339
* There must be a proc_handler routine for any terminal nodes.
13461340
* Several default handlers are available to cover common cases -

0 commit comments

Comments
 (0)