Messages in this thread | | | Subject | Re: [PATCH, RFC] Char dev BKL pushdown v2 | From | (Jonathan Corbet) | Date | Mon, 19 May 2008 16:56:24 -0600 |
| |
Roland Dreier <rdreier@cisco.com> wrote:
> Thanks. Just to be super-explicit, ioctl() cannot be called on a given > file until the open() for that particular file has returned, right?
ioctl() will not be called on a given file descriptor before open() is done, no. If there are other file descriptors open, though, somebody can be calling ioctl() on them while the open() for the new one is executing.
> And the point about driver initialization is that open() can be called > as soon as the file operations are registered, even if the module_init > function has not returned?
That is the point, yes. The key there is to avoid registering the device before everything has been set up to actually manage the device.
jon
| |