Re: [RFC v1 02/14] bus1: provide stub cdev /dev/bus1

From: Tom Gundersen
Date: Thu Oct 27 2016 - 12:40:17 EST


On Thu, Oct 27, 2016 at 6:37 PM, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Thu, Oct 27, 2016 at 8:25 AM, Tom Gundersen <teg@xxxxxxx> 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