Re: VFS/filesystem query

Jan Kara (jack@atrey.karlin.mff.cuni.cz)
Thu, 22 Jul 1999 00:41:14 +0200


> I can find the default_llseek(), generic_file_{read,write}, and a few
> others. Where can I find the default functions for doing a readdir(),
> ioctl(), open(), release(), fsync() and a poll() ?
There aren't any :-). For open/release all work is done in VFS before
your function might be called and so there's no need of default function.
ioctl() also does generic work automatically and any function is needed only
for fs-specific functions. Same for poll().
readdir() and fsync() have to be implemented to allow the functionality -- in
your case you have to call function of underlying fs and pass the results.

Honza.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/