[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20080627.200340.128759990.davem@davemloft.net>
Date: Fri, 27 Jun 2008 20:03:40 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: lizf@...fujitsu.com
Cc: johnpol@....mipt.ru, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org
Subject: Re: [PATCH v2] CONNECTOR: add a proc entry to list connectors
From: Li Zefan <lizf@...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@...fujitsu.com>
> Acked-by: Evgeniy Polyakov <johnpol@....mipt.ru>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists