From: Max Kellermann <max@duempel.org>
To: k8 s <uint32@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Doubt Regarding Multithreading and Device Driver
Date: Wed, 27 Apr 2005 17:10:40 +0200 [thread overview]
Message-ID: <20050427151040.GA5717@roonstrasse.net> (raw)
In-Reply-To: <699a19ea050427080545fb1676@mail.gmail.com>
On 2005/04/27 17:05, k8 s <uint32@gmail.com> wrote:
> 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.
You're talking about kernel variables, aren't you? Kernel memory is
shared among all processes, i.e. you _do_ need locking.
Max
next prev parent reply other threads:[~2005-04-27 15:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-27 15:05 k8 s
2005-04-27 15:10 ` Max Kellermann [this message]
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=20050427151040.GA5717@roonstrasse.net \
--to=max@duempel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=uint32@gmail.com \
/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®