Re: Problem of workqueue

2012-05-03 Thread 夏业添
Hi rohan, I google fanotify and find it's a notification mechanism. My understanding is that fanotify can know fd being open, close, read, write, but transfer data between user space and kernel is out of its ability. If I'm wrong please tell me. The only reason I choose netlink to send data to us

Re: Problem of workqueue

2012-05-03 Thread rohan puri
On Fri, May 4, 2012 at 6:55 AM, 夏业添 wrote: > Hi Chetan, > > Thanks for reply and it works. And I want to verify some other things. > > Is it a good way to use workqueue to do this job: send data to user > space through netlink socket from kernel? > > Thanks! > > 2012/5/4 Chetan Nanda : > > > > On

Re: Problem of workqueue

2012-05-03 Thread 夏业添
Hi Chetan, Thanks for reply and it works. And I want to verify some other things. Is it a good way to use workqueue to do this job: send data to user space through netlink socket from kernel? Thanks! 2012/5/4 Chetan Nanda : > > On May 3, 2012 8:37 PM, "夏业添" wrote: >> >> Hi, >> >> I want to use

Re: Problem of workqueue

2012-05-03 Thread Chetan Nanda
On May 3, 2012 8:37 PM, "夏业添" wrote: > > Hi, > > I want to use workqueue in my irq handler. Some materials say that I can use > >INIT_WORK( &work, function, &data ); > > to initialize work, whose type is struct work_struct, and data is > something should be passed to function. > however, it se

Problem of workqueue

2012-05-03 Thread 夏业添
Hi, I want to use workqueue in my irq handler. Some materials say that I can use INIT_WORK( &work, function, &data ); to initialize work, whose type is struct work_struct, and data is something should be passed to function. however, it seems that now the macro INIT_WORK() only accept two par