From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1GAp-0006dD-Tj for qemu-devel@nongnu.org; Fri, 13 May 2016 12:42:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b1GAo-0000DW-SM for qemu-devel@nongnu.org; Fri, 13 May 2016 12:42:47 -0400 Received: from mail-vk0-x236.google.com ([2607:f8b0:400c:c05::236]:34338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1GAo-0000D0-O8 for qemu-devel@nongnu.org; Fri, 13 May 2016 12:42:46 -0400 Received: by mail-vk0-x236.google.com with SMTP id m188so144065013vka.1 for ; Fri, 13 May 2016 09:42:46 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1454192820-5095-3-git-send-email-laurent@vivier.eu> References: <1454192820-5095-1-git-send-email-laurent@vivier.eu> <1454192820-5095-3-git-send-email-laurent@vivier.eu> From: Peter Maydell Date: Fri, 13 May 2016 17:42:26 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH RFC 2/3] linux-user: support netlink protocol NETLINK_KOBJECT_UEVENT List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier Cc: Riku Voipio , QEMU Developers , Alexander Graf On 30 January 2016 at 22:26, Laurent Vivier wrote: > This is the protocol used by udevd to manage kernel events. > > Signed-off-by: Laurent Vivier > --- > linux-user/syscall.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/linux-user/syscall.c b/linux-user/syscall.c > index a1ed2f5..790ae49 100644 > --- a/linux-user/syscall.c > +++ b/linux-user/syscall.c > @@ -2572,6 +2572,9 @@ static abi_long do_socket(int domain, int type, int protocol) > case NETLINK_ROUTE: > fd_trans_register(ret, &target_netlink_route_trans); > break; > + case NETLINK_KOBJECT_UEVENT: > + /* nothing to do: messages are strings */ > + break; > default: > close(ret); > ret = -EPFNOSUPPORT; Reviewed-by: Peter Maydell though at 3 lines you might as well have folded it into patch 1 :-) thanks -- PMM