From: k8 s <uint32@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Doubt Regarding Multithreading and Device Driver
Date: Wed, 27 Apr 2005 20:35:28 +0530 [thread overview]
Message-ID: <699a19ea050427080545fb1676@mail.gmail.com> (raw)
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
next reply other threads:[~2005-04-27 15:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-27 15:05 k8 s [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=699a19ea050427080545fb1676@mail.gmail.com \
--to=uint32@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®