From: "Yu Zhiguo" <yuzg@nanjing-fnst.com>
To: "Robert Iakobashvili" <coroberti@gmail.com>
Cc: netdev@vger.kernel.org, netfilter-devel@lists.netfilter.org
Subject: Re: Netlink send from the interrupt context
Date: Wed, 23 Nov 2005 17:04:13 +0800 [thread overview]
Message-ID: <033701c5f00c$e0282bd0$6704a8c0@skqianyi> (raw)
In-Reply-To: 7e63f56c0511230033w68e60863wb8a026df3eea3077@mail.gmail.com
yes, it use spinlocks rather than semaphore, and it can use GFP_ATOMIC to clone the message,
so I think it will not go sleep.
regards,
----- Original Message -----
> On 11/23/05, Robert Iakobashvili <coroberti@gmail.com> wrote:
>> On 11/23/05, Yu Zhiguo <yuzg@nanjing-fnst.com> wrote:
>> > Please refer to the function netlink_broadcast(),
>> > int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, u32 pid, u32 group, int allocation)
>> > I think if allocation=GFP_ATOMIC, it can be used in interrupt context.
>> > What's your opinion?
>
> Allocation is OK and it uses only spinlocks in all functions called,
> no semaphores.
>
> My concern actually rises from here:
> http://www.ussg.iu.edu/hypermail/linux/kernel/0407.3/0455.html
>
> Sincerely,
> ----------------------------------------------------------------
> Robert Iakobashvili - NAVIGARE NECESSE EST
> coroberti at gmail dot com
> ---------------------------------------------------------------
next prev parent reply other threads:[~2005-11-23 9:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <7e63f56c0511210034h49917721k74ddb251b9bb1815@mail.gmail.com>
[not found] ` <00a901c5ee79$389e5040$6704a8c0@skqianyi>
[not found] ` <7e63f56c0511222328w6368f7bcl7877fe3aa62c2807@mail.gmail.com>
[not found] ` <02e501c5f002$e5094d00$6704a8c0@skqianyi>
[not found] ` <7e63f56c0511230004j79c7f080j56e25251387ebe94@mail.gmail.com>
[not found] ` <031201c5f007$0ce2e1c0$6704a8c0@skqianyi>
[not found] ` <7e63f56c0511230032x5097569dr3ddac4b05bb6019c@mail.gmail.com>
2005-11-23 8:33 ` Netlink send from the interrupt context Robert Iakobashvili
2005-11-23 9:04 ` Yu Zhiguo [this message]
2005-11-21 11:16 Robert Iakobashvili
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='033701c5f00c$e0282bd0$6704a8c0@skqianyi' \
--to=yuzg@nanjing-fnst.com \
--cc=coroberti@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@lists.netfilter.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