sysctl: Add missing kernel-doc for proc_dointvec_conv
Subsystems (3)
Joel Granados
maintainerPATCH 1/1 sysctl: Add missing kernel-doc for proc_dointvec_conv
Add kernel-doc documentation for the proc_dointvec_conv function to describe its parameters and return value.
--- kernel/sysctl.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
kernel/sysctl.c +16 -0
@@ -862,6 +862,22 @@ int proc_doulongvec_minmax(const struct ctl_table *table, int dir,return proc_doulongvec_minmax_conv (table, dir, buffer, lenp, ppos,1l ,1l ); } +/** +* proc_dointvec_conv - read a vector of ints with a custom converter +* @table: the sysctl table +* @dir: %TRUE if this is a write to the sysctl file +* @buffer: the user buffer +* @lenp: the size of the user buffer +* @ppos: file position +* @conv: Custom converter call back +* +* Reads/writes up to table->maxlen/sizeof(unsigned int) unsigned integer +* values from/to the user buffer, treated as an ASCII string. Negative +* strings are not allowed. +* +* Returns 0 on success +*/ + int proc_dointvec_conv(const struct ctl_table *table, int dir, void *buffer, size_t *lenp, loff_t *ppos, int (*conv)(bool *negp, unsigned long *u_ptr, int *k_ptr,
---
base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
change-id: 20251215-jag-sysctl-doc-d3cb5bd14699
Best regards,
Signature · 1 line
Joel Granados <[email protected]>
Quoted 20 lines · Joel Granados
Add kernel-doc documentation for the
proc_dointvec_convfunction to describe its parameters and return value.Signed-off-by Joel Granados <[email protected]>--- kernel/sysctl.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)kernel/sysctl.c +4
-0@@ -862,6 +862,22 @@ int proc_doulongvec_minmax(const struct ctl_table *table, int dir,return proc_doulongvec_minmax_conv (table, dir, buffer, lenp, ppos,1l ,1l ); } +/** +* proc_dointvec_conv - read a vector of ints with a custom converter +* @table: the sysctl table +* @dir: %TRUE if this is a write to the sysctl file
kernel/sysctl.c int proc_doulongvec_minmax(const struct ctl_table *table, int dir, · line 878
Quoted 10 lines
kernel/sysctl.c +10
-0+* @buffer: the user buffer +* @lenp: the size of the user buffer +* @ppos: file position +* @conv: Custom converter call back +* +* Reads/writes up to table->maxlen/sizeof(unsigned int) unsigned integer +* values from/to the user buffer, treated as an ASCII string. Negative +* strings are not allowed. +* +* Returns 0 on success
I think kern-doc expects "Returns:" rather than "Returns". But otherwise, yes! :)
-Kees
Quoted 15 lines
kernel/sysctl.c +2
-1+*/ + int proc_dointvec_conv(const struct ctl_table *table, int dir, void *buffer, size_t *lenp, loff_t *ppos, int (*conv)(bool *negp, unsigned long *u_ptr, int *k_ptr, ---base-commit:
8f0b4cce4481fb22653697cced8d0d04027cb1e8
change-id: 20251215-jag-sysctl-doc-d3cb5bd14699Best regards,
Signature · 1 line
Joel Granados <[email protected]>
Signature · 1 line
Kees Cook
Joel Granados
maintainerQuoted 26 lines · Kees Cook
Quoted 25 lines · Joel Granados
Add kernel-doc documentation for the
proc_dointvec_convfunction to describe its parameters and return value.Signed-off-by Joel Granados <[email protected]>--- kernel/sysctl.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)kernel/sysctl.c +9
-0@@ -862,6 +862,22 @@ int proc_doulongvec_minmax(const struct ctl_table *table, int dir,return proc_doulongvec_minmax_conv (table, dir, buffer, lenp, ppos,1l ,1l ); } +/** +* proc_dointvec_conv - read a vector of ints with a custom converter +* @table: the sysctl table +* @dir: %TRUE if this is a write to the sysctl file +* @buffer: the user buffer +* @lenp: the size of the user buffer +* @ppos: file position +* @conv: Custom converter call back +*
Quoted 8 lines
kernel/sysctl.c int proc_doulongvec_minmax(const struct ctl_table *table, int dir, · line 878
Quoted 5 lines
kernel/sysctl.c +5
-0+* Reads/writes up to table->maxlen/sizeof(unsigned int) unsigned integer +* values from/to the user buffer, treated as an ASCII string. Negative +* strings are not allowed. +* +* Returns 0 on success I think kern-doc expects "Returns:" rather than "Returns". But otherwise, yes! :)
Will change locally. I wont resend as the change is trivial.
Thx
Quoted 23 lines
Reviewed-by Kees Cook <[email protected]>-Kees
Quoted 15 lines
kernel/sysctl.c +2
-1+*/ + int proc_dointvec_conv(const struct ctl_table *table, int dir, void *buffer, size_t *lenp, loff_t *ppos, int (*conv)(bool *negp, unsigned long *u_ptr, int *k_ptr, ---base-commit:
8f0b4cce4481fb22653697cced8d0d04027cb1e8
change-id: 20251215-jag-sysctl-doc-d3cb5bd14699Best regards,
Signature · 1 line
Joel Granados <[email protected]>Signature · 1 line
Kees Cook
Signature · 1 line
Joel Granados
Joel Granados
maintainerQuoted 17 lines · Kees Cook
Quoted 16 lines · Joel Granados
Add kernel-doc documentation for the
proc_dointvec_convfunction to describe its parameters and return value.Signed-off-by Joel Granados <[email protected]>--- kernel/sysctl.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)kernel/sysctl.c +0
-0@@ -862,6 +862,22 @@ int proc_doulongvec_minmax(const struct ctl_table *table, int dir,return proc_doulongvec_minmax_conv (table, dir, buffer, lenp, ppos,1l ,1l ); }
Quoted 16 lines
Quoted 4 lines
kernel/sysctl.c +4
-0+/** +* proc_dointvec_conv - read a vector of ints with a custom converter +* @table: the sysctl table +* @dir: %TRUE if this is a write to the sysctl file kernel/sysctl.c int proc_doulongvec_minmax(const struct ctl_table *table, int dir, · line 878
Quoted 10 lines
kernel/sysctl.c +10
-0+* @buffer: the user buffer +* @lenp: the size of the user buffer +* @ppos: file position +* @conv: Custom converter call back +* +* Reads/writes up to table->maxlen/sizeof(unsigned int) unsigned integer +* values from/to the user buffer, treated as an ASCII string. Negative +* strings are not allowed. +* +* Returns 0 on success I think kern-doc expects "Returns:" rather than "Returns". But
They are all like this. Forwarding to linux-doc in case someone wants to modify all the "Returns" to "Returns:".
Best
Quoted 24 lines
otherwise, yes! :)
Reviewed-by Kees Cook <[email protected]>-Kees
Quoted 15 lines
kernel/sysctl.c +2
-1+*/ + int proc_dointvec_conv(const struct ctl_table *table, int dir, void *buffer, size_t *lenp, loff_t *ppos, int (*conv)(bool *negp, unsigned long *u_ptr, int *k_ptr, ---base-commit:
8f0b4cce4481fb22653697cced8d0d04027cb1e8
change-id: 20251215-jag-sysctl-doc-d3cb5bd14699Best regards,
Signature · 1 line
Joel Granados <[email protected]>Signature · 1 line
Kees Cook
Signature · 1 line
Joel Granados