Home
last modified time | relevance | path

Searched refs:file_buf (Results 1 – 2 of 2) sorted by relevance

/linux-2.6.39/drivers/mtd/nand/
Dnandsim.c366 void *file_buf; member
484 ns->file_buf = kmalloc(ns->geom.pgszoob, GFP_KERNEL); in alloc_device()
485 if (!ns->file_buf) { in alloc_device()
526 kfree(ns->file_buf); in free_device()
1525 pg_off = ns->file_buf + ns->regs.column + ns->regs.off; in prog_page()
1529 memset(ns->file_buf, 0xff, ns->geom.pgszoob); in prog_page()
1543 tx = write_file(ns, ns->cfile, ns->file_buf, ns->geom.pgszoob, &pos); in prog_page()
/linux-2.6.39/kernel/trace/
Dtrace.c2641 char *file_buf; in tracing_saved_cmdlines_read() local
2647 file_buf = kmalloc(SAVED_CMDLINES*(16+TASK_COMM_LEN), GFP_KERNEL); in tracing_saved_cmdlines_read()
2648 if (!file_buf) in tracing_saved_cmdlines_read()
2653 kfree(file_buf); in tracing_saved_cmdlines_read()
2657 buf = file_buf; in tracing_saved_cmdlines_read()
2673 file_buf, len); in tracing_saved_cmdlines_read()
2675 kfree(file_buf); in tracing_saved_cmdlines_read()