diff options
| -rw-r--r-- | kernel/sysctl.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index b12583047757..30acc6c87b1b 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
| @@ -2083,20 +2083,20 @@ static void proc_skip_char(char **buf, size_t *size, const char v) | |||
| 2083 | 2083 | ||
| 2084 | #define TMPBUFLEN 22 | 2084 | #define TMPBUFLEN 22 |
| 2085 | /** | 2085 | /** |
| 2086 | * proc_get_long - reads an ASCII formated integer from a user buffer | 2086 | * proc_get_long - reads an ASCII formatted integer from a user buffer |
| 2087 | * | 2087 | * |
| 2088 | * @buf - a kernel buffer | 2088 | * @buf: a kernel buffer |
| 2089 | * @size - size of the kernel buffer | 2089 | * @size: size of the kernel buffer |
| 2090 | * @val - this is where the number will be stored | 2090 | * @val: this is where the number will be stored |
| 2091 | * @neg - set to %TRUE if number is negative | 2091 | * @neg: set to %TRUE if number is negative |
| 2092 | * @perm_tr - a vector which contains the allowed trailers | 2092 | * @perm_tr: a vector which contains the allowed trailers |
| 2093 | * @perm_tr_len - size of the perm_tr vector | 2093 | * @perm_tr_len: size of the perm_tr vector |
| 2094 | * @tr - pointer to store the trailer character | 2094 | * @tr: pointer to store the trailer character |
| 2095 | * | 2095 | * |
| 2096 | * In case of success 0 is returned and buf and size are updated with | 2096 | * In case of success %0 is returned and @buf and @size are updated with |
| 2097 | * the amount of bytes read. If tr is non NULL and a trailing | 2097 | * the amount of bytes read. If @tr is non-NULL and a trailing |
| 2098 | * character exist (size is non zero after returning from this | 2098 | * character exists (size is non-zero after returning from this |
| 2099 | * function) tr is updated with the trailing character. | 2099 | * function), @tr is updated with the trailing character. |
| 2100 | */ | 2100 | */ |
| 2101 | static int proc_get_long(char **buf, size_t *size, | 2101 | static int proc_get_long(char **buf, size_t *size, |
| 2102 | unsigned long *val, bool *neg, | 2102 | unsigned long *val, bool *neg, |
| @@ -2147,15 +2147,15 @@ static int proc_get_long(char **buf, size_t *size, | |||
| 2147 | } | 2147 | } |
| 2148 | 2148 | ||
| 2149 | /** | 2149 | /** |
| 2150 | * proc_put_long - coverts an integer to a decimal ASCII formated string | 2150 | * proc_put_long - converts an integer to a decimal ASCII formatted string |
| 2151 | * | 2151 | * |
| 2152 | * @buf - the user buffer | 2152 | * @buf: the user buffer |
| 2153 | * @size - the size of the user buffer | 2153 | * @size: the size of the user buffer |
| 2154 | * @val - the integer to be converted | 2154 | * @val: the integer to be converted |
| 2155 | * @neg - sign of the number, %TRUE for negative | 2155 | * @neg: sign of the number, %TRUE for negative |
| 2156 | * | 2156 | * |
| 2157 | * In case of success 0 is returned and buf and size are updated with | 2157 | * In case of success %0 is returned and @buf and @size are updated with |
| 2158 | * the amount of bytes read. | 2158 | * the amount of bytes written. |
| 2159 | */ | 2159 | */ |
| 2160 | static int proc_put_long(void __user **buf, size_t *size, unsigned long val, | 2160 | static int proc_put_long(void __user **buf, size_t *size, unsigned long val, |
| 2161 | bool neg) | 2161 | bool neg) |
