Skip to content

Commit 4864010

Browse files
committed
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. Reviewed-by: Kees Cook <kees@kernel.org> Signed-off-by: Joel Granados <joel.granados@kernel.org>
1 parent 8f0b4cc commit 4864010

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

kernel/sysctl.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,22 @@ int proc_doulongvec_minmax(const struct ctl_table *table, int dir,
862862
return proc_doulongvec_minmax_conv(table, dir, buffer, lenp, ppos, 1l, 1l);
863863
}
864864

865+
/**
866+
* proc_dointvec_conv - read a vector of ints with a custom converter
867+
* @table: the sysctl table
868+
* @dir: %TRUE if this is a write to the sysctl file
869+
* @buffer: the user buffer
870+
* @lenp: the size of the user buffer
871+
* @ppos: file position
872+
* @conv: Custom converter call back
873+
*
874+
* Reads/writes up to table->maxlen/sizeof(unsigned int) unsigned integer
875+
* values from/to the user buffer, treated as an ASCII string. Negative
876+
* strings are not allowed.
877+
*
878+
* Returns: 0 on success
879+
*/
880+
865881
int proc_dointvec_conv(const struct ctl_table *table, int dir, void *buffer,
866882
size_t *lenp, loff_t *ppos,
867883
int (*conv)(bool *negp, unsigned long *u_ptr, int *k_ptr,

0 commit comments

Comments
 (0)