Duan wrote:
>Hi,
>
> I am developing a linux dri driver for my company.
>I get some question about kernel module. Would you
>like give me some instruction about dri ?
>
> The following is the question.
>
>1. Before the kernel deal with a ioctl, Can the kernel receive another
> ioctl and deal with it?
> For Example:
> ioctl_printf(...){
> if (dev->count <100 ){
> dev->count --;
> }
> }
>
> Process A called the ioctl_printf, the kernel executed the
> command "if(dev->count < 100 ) " and doesn't executed the
> command "dev->count--". Is it possibble that process B calls
> the ioctl_printf and kernel enter the function ?
>
Yes it can.
>
>
>2.If the ioctl is synchronous, should I use the semaphore or spin_lock?
> Has the resource of semaphore and spin_lock limit?
>
Do u mean asynchronous? If it is synchronous then the other process
would wait.
>
>
>
> Thanks!
>
>
>_______________________________________________
>Dri-devel mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/dri-devel
>
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel