Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755350AbZIKUqI (ORCPT ); Fri, 11 Sep 2009 16:46:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754001AbZIKUqG (ORCPT ); Fri, 11 Sep 2009 16:46:06 -0400 Received: from mail2.shareable.org ([80.68.89.115]:56239 "EHLO mail2.shareable.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751760AbZIKUqF (ORCPT ); Fri, 11 Sep 2009 16:46:05 -0400 Date: Fri, 11 Sep 2009 21:46:02 +0100 From: Jamie Lokier To: Eric Paris Cc: David Miller , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, netdev@vger.kernel.org, viro@zeniv.linux.org.uk, alan@linux.intel.com, hch@infradead.org Subject: Re: [PATCH 1/8] networking/fanotify: declare fanotify socket numbers Message-ID: <20090911204602.GA19371@shareable.org> References: <20090911052558.32359.18075.stgit@paris.rdu.redhat.com> <20090911.114620.260824240.davem@davemloft.net> <1252697613.2305.38.camel@dhcp231-106.rdu.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1252697613.2305.38.camel@dhcp231-106.rdu.redhat.com> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1047 Lines: 25 Eric Paris wrote: > > I would really prefer if you worked on eliminating the problem that > > prevents you from using netlink instead. > > I'm not really sure if I can, although I'd love to hear input from > someone who knows the netlink code on how I can make it do what I need. > I'm really not duplicating much other than the NLMSG_OK and NLMSG_NEXT > macros. My code doesn't even use skbs and I'm not savy enough to really > know how I could. I'm more than willing to work on it if someone can > point me to how it might work. Let's turn the question around. Since you're doing lots of non-sockety things, and can't tolerate dropped packets - why isn't it a character device? What's the reason for using a socket at all? (I'm reminded of /dev/poll, /dev/epoll and /dev/inotify :-) -- Jamie -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/