why not use copy_from_user and copy_to_user? 2009/2/1 Sandeep K Sinha <sandeepksinha@xxxxxxxxx>: > Write a daemon in userspace which runs in background and continuously > send ioctl's to your driver and gets the value of i. > If the value of i becomes even, you can write your desired code. > > Is this what you wanted ? > > On Sat, Jan 31, 2009 at 2:53 PM, rishi agrawal <postrishi@xxxxxxxxx> wrote: >> Hello Everyone, >> >> I have a char device which when gets ioctl case 'a' starts a for loop with >> index ' i '. >> >> I want to send the value of index ' i ' to user space whenever ' i ' is >> even. >> >> I want some thing like the kernel space code of char device should send a >> variable and also a 'signal' that it has send a value. >> >> How can it be done ? >> >> Its something like Pipes >> >> -- >> Regards, >> Rishi B. Agrawal >> >> > > > > -- > Regards, > Sandeep. > > > > > > > "To learn is to change. Education is a process that changes the learner." > > -- > To unsubscribe from this list: send an email with > "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx > Please read the FAQ at http://kernelnewbies.org/FAQ > > -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ