Re: block device/VM question

Thunder from the hill (thunder@lightweight.ods.org)
Tue, 27 Aug 2002 13:13:37 -0600 (MDT)


Hi,

On Tue, 27 Aug 2002, Peter T. Breuer wrote:
> Yecch. I have the inode of the sepecial device file. I don't want to
> know the name. I even have a file pointer.

Then you're obviously for the wrong stuff.

> In dentry_open(), we get a struct file f = get_empty_filp(), and then
> fill out various of its fields with enormously obscure things.

For a good reason: we always need to fill in the values somewhere, they
don't quite come from heaven.

> And for the O_DIRECT flag we seem to do alloc_kiovec(1, &f->f_iobuf).

Perhaps we should go biovec here?

For you, if you can stand it you can even go directly into the dio stuff
from direct-io.c. You'll just need to know what to do. Or you fill your
information into some underway function.

Thunder

-- 
--./../...-/. -.--/---/..-/.-./..././.-../..-. .---/..-/.../- .-
--/../-./..-/-/./--..-- ../.----./.-../.-.. --./../...-/. -.--/---/..-
.- -/---/--/---/.-./.-./---/.--/.-.-.-
--./.-/-.../.-./.././.-../.-.-.-

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