[Click] click Digest, Vol 92, Issue 4

Joonwoo Park joonwpark81 at gmail.com
Wed Feb 2 14:20:03 EST 2011


Bobby,

On Wed, Feb 2, 2011 at 11:04 AM, Joonwoo Park <joonwpark81 at gmail.com> wrote:
>> In ToUserDevice:  It looks like the existing IOCTL isn't doing anything that requires locking, so you should be able to leave out the mutex.
>
> I don't think so...  filp->private_data is not atomic on every platform.
>

I have to double check tonight (I'm not accessing click source code at
work) but I think it's possible I was wrong.
I was thinking that filp->private_data is shared between different
userspace open.  But it's probably not true.
I'll have look again.

Thanks!
Joonwoo



More information about the click mailing list