[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081117111516.GA10542@x200.localdomain>
Date: Mon, 17 Nov 2008 14:15:16 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: Eric Dumazet <dada1@...mosbay.com>
Cc: "David S. Miller" <davem@...emloft.net>,
"Denis V. Lunev" <den@...nvz.org>,
Linux Netdev List <netdev@...r.kernel.org>
Subject: Re: [PATCH] net: make /proc/net/protocols namespace aware
On Mon, Nov 17, 2008 at 11:53:43AM +0100, Eric Dumazet wrote:
> --- a/net/core/sock.c
> +++ b/net/core/sock.c
> @@ -2230,7 +2230,8 @@ static const struct seq_operations proto_seq_ops = {
>
> static int proto_seq_open(struct inode *inode, struct file *file)
> {
> - return seq_open(file, &proto_seq_ops);
> + return seq_open_net(inode, file, &proto_seq_ops,
> + sizeof(struct seq_net_private));
You have to hook seq_release_net if you do this.
> }
>
> static const struct file_operations proto_seq_fops = {
> @@ -2241,10 +2242,28 @@ static const struct file_operations proto_seq_fops = {
> .release = seq_release,
+.release = seq_release_net,
--
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