From: "Peter T. Breuer" <ptb@it.uc3m.es>
To: Thunder from the hill <thunder@lightweight.ods.org>
Cc: linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: block device/VM question
Date: Tue, 27 Aug 2002 20:04:48 +0200 (MET DST) [thread overview]
Message-ID: <200208271804.g7RI4mc05751@oboe.it.uc3m.es> (raw)
In-Reply-To: <Pine.LNX.4.44.0208271118000.3234-100000@hawkeye.luckynet.adm> from Thunder from the hill at "Aug 27, 2002 11:22:28 am"
"A month of sundays ago Thunder from the hill wrote:"
> > there I can do whatever the sysopen with O_DIRECT does.
>
> I try to say, see how sys_open() handles O_DIRECT. You should be able to
> do just the same.
Well, how it handles it is manifestly unclear. It seems to trace down to
the dentry and call dentry_open(), but with a struct vfsmount as
another arg. I don't know what that's for. It got the vfsmount by aother
esoteric lookup, getting a struct nameidata from the filename via
open_namei.
Yecch. I have the inode of the sepecial device file. I don't want to
know the name. I even have a file pointer.
In dentry_open(), we get a struct file f = get_empty_filp(), and then
fill out various of its fields with enormously obscure things. And for
the O_DIRECT flag we seem to do alloc_kiovec(1, &f->f_iobuf).
I feel that the latter is all I want to do, and the question is to what,
where (I'll clean up on release). Do I do this every time the devices
_open() function is called? Or just once, and what do I do it to? I
should do it to the struct file that gets passed into to the driver
open()? I'll try that. And set the flag.
Peter
next parent reply other threads:[~2002-08-27 18:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.44.0208271118000.3234-100000@hawkeye.luckynet.adm>
2002-08-27 18:04 ` Peter T. Breuer [this message]
2002-08-27 19:13 ` Thunder from the hill
2002-08-27 19:28 ` Peter T. Breuer
2002-08-29 5:45 Peter T. Breuer
-- strict thread matches above, loose matches on Subject: below --
2002-08-28 14:38 Peter T. Breuer
2002-08-27 18:40 Peter T. Breuer
[not found] <Pine.LNX.4.44.0208271100460.3234-100000@hawkeye.luckynet.adm>
2002-08-27 17:12 ` Peter T. Breuer
[not found] <Pine.LNX.4.44.0208271021020.3234-100000@hawkeye.luckynet.adm>
2002-08-27 16:32 ` Peter T. Breuer
2002-08-27 16:42 ` Thunder from the hill
2002-08-27 16:57 ` Peter T. Breuer
2002-08-27 11:28 Peter T. Breuer
2002-08-27 8:58 Peter T. Breuer
2002-08-27 16:06 ` Thunder from the hill
2002-08-27 16:14 ` Peter T. Breuer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200208271804.g7RI4mc05751@oboe.it.uc3m.es \
--to=ptb@it.uc3m.es \
--cc=linux-kernel@vger.kernel.org \
--cc=thunder@lightweight.ods.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®