Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+16
+16
kernel/sysctl.c
··· 862 862 return proc_doulongvec_minmax_conv(table, dir, buffer, lenp, ppos, 1l, 1l); 863 863 } 864 864 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 + 865 881 int proc_dointvec_conv(const struct ctl_table *table, int dir, void *buffer, 866 882 size_t *lenp, loff_t *ppos, 867 883 int (*conv)(bool *negp, unsigned long *u_ptr, int *k_ptr,