Messages in this thread | | | Date | Wed, 27 Apr 2005 16:46:43 +0100 | From | Al Viro <> | Subject | Re: Doubt Regarding Multithreading and Device Driver |
| |
On Wed, Apr 27, 2005 at 09:00:58PM +0530, k8 s wrote: > But i am sharing something in file->private_data which is a private > variable to the process(that is passed to the device driver > functions). Isn't it?
It is not. It is private to struct file. Not to process. And any number of things (starting with fork()) will give several processes references to the same struct file. As soon as it had returned from ->open(), it should be considered externally visible and potentially shared until ->release() is called. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |