From: k8 s <uint32@gmail.com>
To: k8 s <uint32@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: Doubt Regarding Multithreading and Device Driver
Date: Wed, 27 Apr 2005 21:00:58 +0530 [thread overview]
Message-ID: <699a19ea05042708305fb7194b@mail.gmail.com> (raw)
In-Reply-To: <20050427151040.GA5717@roonstrasse.net>
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?
SK
On 4/27/05, Max Kellermann <max@duempel.org> wrote:
> 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:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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=699a19ea05042708305fb7194b@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 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.