[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Ype7skNJzEQ1W96v@casper.infradead.org>
Date: Wed, 1 Jun 2022 20:19:14 +0100
From: Matthew Wilcox <willy@...radead.org>
To: Alexey Gladkov <legion@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
"Eric W . Biederman" <ebiederm@...ssion.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Christian Brauner <brauner@...nel.org>,
Iurii Zaikin <yzaikin@...gle.com>,
Kees Cook <keescook@...omium.org>,
Linux Containers <containers@...ts.linux.dev>,
linux-fsdevel@...r.kernel.org,
Luis Chamberlain <mcgrof@...nel.org>,
Vasily Averin <vvs@...tuozzo.com>
Subject: Re: [RFC PATCH 1/4] sysctl: API extension for handling sysctl
On Wed, Jun 01, 2022 at 03:20:29PM +0200, Alexey Gladkov wrote:
> +struct ctl_fops {
> + int (*open) (struct ctl_context *, struct inode *, struct file *);
> + int (*release) (struct ctl_context *, struct inode *, struct file *);
> + ssize_t (*read) (struct ctl_context *, struct file *, char *, size_t *, loff_t *);
> + ssize_t (*write) (struct ctl_context *, struct file *, char *, size_t *, loff_t *);
> +};
Why not pass the iocb in ->read and ->write? We're still regretting not
doing that with file_operations.
Powered by blists - more mailing lists