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

From: Linus Torvalds
Date: Thu Oct 27 2016 - 12:37:56 EST


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. The
tracing and filtering one not so much.

Linus