Skip to content

Commit b3af263

Browse files
committed
sysctl: Add kernel doc to proc_douintvec_conv
This commit is making sure that all the functions that are part of the API are documented. Signed-off-by: Joel Granados <joel.granados@kernel.org>
1 parent 8fc344a commit b3af263

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
@@ -656,6 +656,22 @@ static int do_proc_douintvec(const struct ctl_table *table, int dir,
656656
return do_proc_douintvec_r(table, buffer, lenp, ppos, conv);
657657
}
658658

659+
/**
660+
* proc_douintvec_conv - read a vector of unsigned ints with a custom converter
661+
*
662+
* @table: the sysctl table
663+
* @dir: %TRUE if this is a write to the sysctl file
664+
* @buffer: the user buffer
665+
* @lenp: the size of the user buffer
666+
* @ppos: file position
667+
* @conv: Custom converter call back
668+
*
669+
* Reads/writes up to table->maxlen/sizeof(unsigned int) unsigned integer
670+
* values from/to the user buffer, treated as an ASCII string. Negative
671+
* strings are not allowed.
672+
*
673+
* Returns 0 on success
674+
*/
659675
int proc_douintvec_conv(const struct ctl_table *table, int dir, void *buffer,
660676
size_t *lenp, loff_t *ppos,
661677
int (*conv)(unsigned long *u_ptr, unsigned int *k_ptr,

0 commit comments

Comments
 (0)