Lines Matching refs:buffer
193 int param_get_##name(char *buffer, struct kernel_param *kp) \
195 return sprintf(buffer, format, *((type *)kp->arg)); \
224 int param_get_charp(char *buffer, struct kernel_param *kp) in param_get_charp() argument
226 return sprintf(buffer, "%s", *((char **)kp->arg)); in param_get_charp()
246 int param_get_bool(char *buffer, struct kernel_param *kp) in param_get_bool() argument
249 return sprintf(buffer, "%c", (*(int *)kp->arg) ? 'Y' : 'N'); in param_get_bool()
264 int param_get_invbool(char *buffer, struct kernel_param *kp) in param_get_invbool() argument
266 return sprintf(buffer, "%c", (*(int *)kp->arg) ? 'N' : 'Y'); in param_get_invbool()
332 int param_array_get(char *buffer, struct kernel_param *kp) in param_array_get() argument
341 buffer[off++] = ','; in param_array_get()
343 ret = arr->get(buffer + off, &p); in param_array_get()
348 buffer[off] = '\0'; in param_array_get()
369 int param_get_string(char *buffer, struct kernel_param *kp) in param_get_string() argument
372 return strlcpy(buffer, kps->string, kps->maxlen); in param_get_string()