Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938353AbcJ0QkP (ORCPT ); Thu, 27 Oct 2016 12:40:15 -0400 Received: from mail-vk0-f66.google.com ([209.85.213.66]:35240 "EHLO mail-vk0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935358AbcJ0QkN (ORCPT ); Thu, 27 Oct 2016 12:40:13 -0400 MIME-Version: 1.0 X-Originating-IP: [2a02:fe0:c130:1430:7e7a:91ff:fe0e:3e2c] In-Reply-To: References: <20161026191810.12275-1-dh.herrmann@gmail.com> <2469565.N6oiQLH2B8@wuerfel> From: Tom Gundersen Date: Thu, 27 Oct 2016 18:39:51 +0200 Message-ID: Subject: Re: [RFC v1 02/14] bus1: provide stub cdev /dev/bus1 To: Linus Torvalds Cc: Arnd Bergmann , Andy Lutomirski , David Herrmann , Hannes Reinecke , Jiri Kosina , "linux-kernel@vger.kernel.org" , Andrew Morton , Josh Triplett , Greg KH , Steven Rostedt Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 606 Lines: 21 On Thu, Oct 27, 2016 at 6:37 PM, Linus Torvalds wrote: > On Thu, Oct 27, 2016 at 8:25 AM, Tom Gundersen wrote: >> >> Could you elaborate on why you think syscalls would be more >> appropriate than ioctls? > > ioctl's tend to be a horrid mess both for things like compat.but also > for things like system call tracing and filtering (ie BPF). > > The compat mess is fixable by making sure you always use 64-bit fields > rather than pointers everywhere and everything is aligned. This we do. > The > tracing and filtering one not so much. Got it. Thanks. Tom