Home
last modified time | relevance | path

Searched refs:kbuf (Results 1 – 5 of 5) sorted by relevance

/kernel/
Dkexec_file.c339 struct kexec_buf *kbuf) in locate_mem_hole_top_down() argument
341 struct kimage *image = kbuf->image; in locate_mem_hole_top_down()
344 temp_end = min(end, kbuf->buf_max); in locate_mem_hole_top_down()
345 temp_start = temp_end - kbuf->memsz; in locate_mem_hole_top_down()
349 temp_start = temp_start & (~(kbuf->buf_align - 1)); in locate_mem_hole_top_down()
351 if (temp_start < start || temp_start < kbuf->buf_min) in locate_mem_hole_top_down()
354 temp_end = temp_start + kbuf->memsz - 1; in locate_mem_hole_top_down()
370 kbuf->mem = temp_start; in locate_mem_hole_top_down()
377 struct kexec_buf *kbuf) in locate_mem_hole_bottom_up() argument
379 struct kimage *image = kbuf->image; in locate_mem_hole_bottom_up()
[all …]
Duser_namespace.c651 char *kbuf = NULL, *pos, *next_line; in map_write() local
692 kbuf = memdup_user_nul(buf, count); in map_write()
693 if (IS_ERR(kbuf)) { in map_write()
694 ret = PTR_ERR(kbuf); in map_write()
695 kbuf = NULL; in map_write()
701 pos = kbuf; in map_write()
799 kfree(kbuf); in map_write()
909 char kbuf[8], *pos; in proc_setgroups_write() local
915 if ((*ppos != 0) || (count >= sizeof(kbuf))) in proc_setgroups_write()
920 if (copy_from_user(kbuf, buf, count)) in proc_setgroups_write()
[all …]
Dsysctl.c2232 char *kbuf = NULL, *p; in __do_proc_dointvec() local
2261 p = kbuf = memdup_user_nul(buffer, left); in __do_proc_dointvec()
2262 if (IS_ERR(kbuf)) in __do_proc_dointvec()
2263 return PTR_ERR(kbuf); in __do_proc_dointvec()
2304 kfree(kbuf); in __do_proc_dointvec()
2506 char *kbuf = NULL, *p; in __do_proc_doulongvec_minmax() local
2534 p = kbuf = memdup_user_nul(buffer, left); in __do_proc_doulongvec_minmax()
2535 if (IS_ERR(kbuf)) in __do_proc_doulongvec_minmax()
2536 return PTR_ERR(kbuf); in __do_proc_doulongvec_minmax()
2576 kfree(kbuf); in __do_proc_doulongvec_minmax()
[all …]
Dkexec_core.c731 unsigned char *kbuf = NULL; in kimage_load_normal_segment() local
735 kbuf = segment->kbuf; in kimage_load_normal_segment()
771 memcpy(ptr, kbuf, uchunk); in kimage_load_normal_segment()
782 kbuf += mchunk; in kimage_load_normal_segment()
802 unsigned char *kbuf = NULL; in kimage_load_crash_segment() local
806 kbuf = segment->kbuf; in kimage_load_crash_segment()
834 memcpy(ptr, kbuf, uchunk); in kimage_load_crash_segment()
846 kbuf += mchunk; in kimage_load_crash_segment()
/kernel/trace/
Dtrace_probe.c648 char *kbuf, *tmp; in traceprobe_probes_write() local
653 kbuf = kmalloc(WRITE_BUFSIZE, GFP_KERNEL); in traceprobe_probes_write()
654 if (!kbuf) in traceprobe_probes_write()
663 if (copy_from_user(kbuf, buffer + done, size)) { in traceprobe_probes_write()
667 kbuf[size] = '\0'; in traceprobe_probes_write()
668 tmp = strchr(kbuf, '\n'); in traceprobe_probes_write()
672 size = tmp - kbuf + 1; in traceprobe_probes_write()
681 tmp = strchr(kbuf, '#'); in traceprobe_probes_write()
686 ret = traceprobe_command(kbuf, createfn); in traceprobe_probes_write()
693 kfree(kbuf); in traceprobe_probes_write()