cregit-Linux how code gets into the kernel

Release 4.17 fs/proc/util.c

Directory: fs/proc
#include <linux/dcache.h>


unsigned name_to_int(const struct qstr *qstr) { const char *name = qstr->name; int len = qstr->len; unsigned n = 0; if (len > 1 && *name == '0') goto out; do { unsigned c = *name++ - '0'; if (c > 9) goto out; if (n >= (~0U-9)/10) goto out; n *= 10; n += c; } while (--len > 0); return n; out: return ~0U; }

Contributors

PersonTokensPropCommitsCommitProp
Alexey Dobriyan108100.00%2100.00%
Total108100.00%2100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Alexey Dobriyan111100.00%2100.00%
Total111100.00%2100.00%
Directory: fs/proc
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.