Re: cann't dump info to user file from kernel

2007-10-02 Thread Denis V. Lunev
This will never work, as you call blocking (non-atomic) functions from atomic context. kernel coder wrote: > hi, > I'm trying to dump some information from dev.c to user space > file.Following is the code which i'm using to write to user spcae > file.I'm using 2.6.22.x86_64 kernel. > >

cann't dump info to user file from kernel

2007-10-02 Thread kernel coder
hi, I'm trying to dump some information from dev.c to user space file.Following is the code which i'm using to write to user spcae file.I'm using 2.6.22.x86_64 kernel. #define _write(f, buf, sz) (f->f_op->write(f, buf, sz, &f->f_pos)) #define WRITABLE(f) (f->f_op && f->f_op->write) int