Re: f_op->read seems to be always NULL since Linux 4.1

From: Richard Weinberger
Date: Sat Jun 27 2015 - 14:11:09 EST


On Sat, Jun 27, 2015 at 7:32 PM, Andreas Hartmann
<andihartmann@xxxxxxxxxxxxxxx> wrote:
> Hello!
>
> Given is a module like the following snippet running fine w/ Linux 4.0
> and ext4 fs - but doesn't work w/ Linux 4.1 because f->f_op->read is not
> defined any more (= NULL). Is this the intended behavior now?

See __vfs_read().
Your module most not rely on such internals.

--
Thanks,
//richard
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/