All of lore.kernel.org
 help / color / mirror / Atom feed
* Doubt Regarding Multithreading and Device Driver
@ 2005-04-27 15:05 k8 s
  2005-04-27 15:10 ` Max Kellermann
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: k8 s @ 2005-04-27 15:05 UTC (permalink / raw)
  To: linux-kernel

hello,

I have a doubt regarding user space threads and device drivers
implementation issue.

I have a device driver for /dev/skn
It implements basic driver operations skn_open,skn_release, skn_ioctl.

I am storing something into struct file*filp->private_data.
As this is not shared across processes I am not doing any locking
stuff while accessing or putting anything into it.

Will There be a race condition in a multithreaded program in the ioctl
call on smp kernel accessing filp->private_data.

S.Kartikeyan

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-04-27 15:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-27 15:05 Doubt Regarding Multithreading and Device Driver k8 s
2005-04-27 15:10 ` Max Kellermann
2005-04-27 15:30   ` k8 s
2005-04-27 15:41     ` Paulo Marques
2005-04-27 15:46     ` Al Viro
2005-04-27 15:34 ` Richard B. Johnson
2005-04-27 15:34 ` Jonathan Corbet

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.