Skip to content

Commit 2be7fe0

Browse files
akpm00Linus Torvalds
authored andcommitted
sysctl.c: add text telling people to use CTL_UNNUMBERED
Hopefully this will help people to understand the new regime. Cc: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 97d8f83 commit 2be7fe0

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

‎kernel/sysctl.c‎

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,10 @@ static ctl_table root_table[] = {
203203
.mode = 0555,
204204
.child = dev_table,
205205
},
206-
206+
/*
207+
* NOTE: do not add new entries to this table unless you have read
208+
* Documentation/sysctl/ctl_unnumbered.txt
209+
*/
207210
{ .ctl_name = 0 }
208211
};
209212

@@ -992,6 +995,14 @@ static ctl_table vm_table[] = {
992995
.extra1 = &zero,
993996
},
994997
#endif
998+
/*
999+
* NOTE: do not add new entries to this table unless you have read
1000+
* Documentation/sysctl/ctl_unnumbered.txt
1001+
*/
1002+
/*
1003+
* NOTE: do not add new entries to this table unless you have read
1004+
* Documentation/sysctl/ctl_unnumbered.txt
1005+
*/
9951006
{ .ctl_name = 0 }
9961007
};
9971008

@@ -1132,6 +1143,14 @@ static ctl_table fs_table[] = {
11321143
.child = binfmt_misc_table,
11331144
},
11341145
#endif
1146+
/*
1147+
* NOTE: do not add new entries to this table unless you have read
1148+
* Documentation/sysctl/ctl_unnumbered.txt
1149+
*/
1150+
/*
1151+
* NOTE: do not add new entries to this table unless you have read
1152+
* Documentation/sysctl/ctl_unnumbered.txt
1153+
*/
11351154
{ .ctl_name = 0 }
11361155
};
11371156

0 commit comments

Comments
 (0)