Re: Scull Driver - Read

2015-03-21 Thread Pranay Srivastava
Hi Sahil On Fri, Mar 20, 2015 at 6:12 PM, sahil aggarwal sahil.ag...@gmail.com wrote: Hi Pranay, Can you help me with this too.? In case of _IOC_READ why VERIFY_WRITE and in case of _IOC_WRITE why VERIFY_READ.? . Book says its kernel oriented so concept of read and write is reversed.

Re: Scull Driver - Read

2015-03-21 Thread Pranay Srivastava
Hi Sahil On Fri, Mar 20, 2015 at 6:14 PM, sahil aggarwal sahil.ag...@gmail.com wrote: Does it mean that in kernel space the direction bitfields are reversed.? No it doesn't mean that. On 20 March 2015 at 18:12, sahil aggarwal sahil.ag...@gmail.com wrote: Hi Pranay, Can you help me with

Re: Kernel thread scheduling

2015-03-21 Thread Anand Moon
Hi Jeff, kernel_thread just like daemon process. These are self monitoring process. These process get scheduled by the kernel when their is any state change from TASK_INTERRUPTIBLE to TASK_RUNNING or their is some condition that get full field. If you don't schedule() the kernel thread state

Re: Scull Driver - Read

2015-03-21 Thread sahil aggarwal
Hi Pranay Thanks a lot. That cleared it all. On 21 March 2015 at 13:45, Pranay Srivastava pran...@gmail.com wrote: Hi Sahil On Fri, Mar 20, 2015 at 6:14 PM, sahil aggarwal sahil.ag...@gmail.com wrote: Does it mean that in kernel space the direction bitfields are reversed.? No it doesn't