From patchwork Sat Jan 30 22:26:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 8172421 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C0216BEEE5 for ; Sat, 30 Jan 2016 22:27:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3D35620328 for ; Sat, 30 Jan 2016 22:27:34 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 98E5520320 for ; Sat, 30 Jan 2016 22:27:33 +0000 (UTC) Received: from localhost ([::1]:39913 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPdzQ-0005zO-Ug for patchwork-qemu-devel@patchwork.kernel.org; Sat, 30 Jan 2016 17:27:32 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPdzB-0005rd-17 for qemu-devel@nongnu.org; Sat, 30 Jan 2016 17:27:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPdzA-0004Ev-9l for qemu-devel@nongnu.org; Sat, 30 Jan 2016 17:27:16 -0500 Received: from smtp1-g21.free.fr ([212.27.42.1]:20786) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPdzA-0004Ep-3Z for qemu-devel@nongnu.org; Sat, 30 Jan 2016 17:27:16 -0500 Received: from Quad.localdomain (unknown [IPv6:2a01:e34:eeee:5240:12c3:7bff:fe6b:9a76]) by smtp1-g21.free.fr (Postfix) with ESMTPS id 8C73D94015C; Sat, 30 Jan 2016 23:25:27 +0100 (CET) From: Laurent Vivier To: Riku Voipio Date: Sat, 30 Jan 2016 23:26:59 +0100 Message-Id: <1454192820-5095-3-git-send-email-laurent@vivier.eu> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1454192820-5095-1-git-send-email-laurent@vivier.eu> References: <1454192820-5095-1-git-send-email-laurent@vivier.eu> X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-Received-From: 212.27.42.1 Cc: Laurent Vivier , qemu-devel@nongnu.org, agraf@suse.de Subject: [Qemu-devel] [PATCH RFC 2/3] linux-user: support netlink protocol NETLINK_KOBJECT_UEVENT X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This is the protocol used by udevd to manage kernel events. Signed-off-by: Laurent Vivier Reviewed-by: Peter Maydell --- 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;