From: JanuGerman <doublemalam@yahoo.co.uk>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: linuxkernel <linux-kernel@vger.kernel.org>
Subject: Re: Two questions regarding Opening files within Kernel!
Date: Sat, 7 Apr 2007 16:57:32 +0000 (GMT) [thread overview]
Message-ID: <249860.22361.qm@web86911.mail.ukl.yahoo.com> (raw)
Thanks Jan for the response.
>struct dentry *foooobar = lookup_one_len("/foo/bar", current->fs->root);
But that gives me a dentry, where as file object is still not reachable.
Question: I am currently using a function called fs.h/dentry_open which takes a "dentry", "vfsmount" object and flag (usually RW i.e. 2), and gives me the file object. with your suggested method, vfsmount is still not available. In this regard, any idea about a function, which gives directly the file object instead of dentry will be highly appreciated.
OR, (Kindly see the code below), i need some thing for "missing vfsmount".
struct dentry *foooobar = lookup_one_len("/foo/bar", current->fs->root);
struct file *file1 = dentry_open(foooobar, "missing vfsmount here",2)
Thanks,
JG
___________________________________________________________
New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes.
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk
next reply other threads:[~2007-04-07 16:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-07 16:57 JanuGerman [this message]
2007-04-07 18:44 ` Jan Engelhardt
[not found] <fa.9BBqigWhVcsOIUStQ9CipWD6PQo@ifi.uio.no>
2007-04-07 16:50 ` Robert Hancock
-- strict thread matches above, loose matches on Subject: below --
2007-04-07 6:58 JanuGerman
2007-04-07 9:22 ` Roland Kuhn
2007-04-07 11:07 ` Jan Engelhardt
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=249860.22361.qm@web86911.mail.ukl.yahoo.com \
--to=doublemalam@yahoo.co.uk \
--cc=jengelh@linux01.gwdg.de \
--cc=linux-kernel@vger.kernel.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®