From: David Miller <davem@davemloft.net>
To: lizf@cn.fujitsu.com
Cc: johnpol@2ka.mipt.ru, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org
Subject: Re: [PATCH v2] CONNECTOR: add a proc entry to list connectors
Date: Fri, 27 Jun 2008 20:03:40 -0700 (PDT) [thread overview]
Message-ID: <20080627.200340.128759990.davem@davemloft.net> (raw)
In-Reply-To: <4860B279.9070105@cn.fujitsu.com>
From: Li Zefan <lizf@cn.fujitsu.com>
Date: Tue, 24 Jun 2008 16:38:17 +0800
> I got a problem when I wanted to check if the kernel supports process
> event connector, and It seems there's no way to do this check.
>
> At best I can check if the kernel supports connector or not, by looking
> into /proc/net/netlink, or maybe checking the return value of bind() to
> see if it's ENOENT.
>
> So it would be useful to add /proc/net/connector to list all supported
> connectors:
> # cat /proc/net/connector
> Name ID
> connector 4294967295:4294967295
> cn_proc 1:1
> w1 3:1
>
> Changelog:
> - fix memory leak: s/seq_release/single_release
> - use spin_lock_bh instead of spin_lock_irqsave
>
> Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
> Acked-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Applied, thanks.
prev parent reply other threads:[~2008-06-28 3:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-24 8:38 [PATCH v2] CONNECTOR: add a proc entry to list connectors Li Zefan
[not found] ` <4860B279.9070105-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2008-06-24 10:00 ` Subrata Modak
2008-06-28 3:03 ` David Miller [this message]
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=20080627.200340.128759990.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=johnpol@2ka.mipt.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=lizf@cn.fujitsu.com \
--cc=netdev@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;
as well as URLs for NNTP newsgroup(s).