mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dave Kleikamp <shaggy@austin.ibm.com>
To: sankarshana rao <san_wipro@yahoo.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Inode question
Date: Wed, 21 Jul 2004 15:56:17 -0500	[thread overview]
Message-ID: <1090443377.17488.36.camel@shaggy.austin.ibm.com> (raw)
In-Reply-To: <20040721204602.35891.qmail@web50906.mail.yahoo.com>

On Wed, 2004-07-21 at 15:46, sankarshana rao wrote:
> Thx for the reply...
> When I try to call lookup() from my kernel module, it
> gives undefined symbol error during INSMOD..
> any clues???

Not lookup, but path_lookup.

#include <linux/namei.h>
struct nameidata nd;
rc = path_lookup(path, LOOKUP_FOLLOW, &nd);
if (rc)
	file not found
else
	inum = nd.dentry->d_inode->i_ino;
	path_release(&nd);

> --- Dave Kleikamp <shaggy@austin.ibm.com> wrote:
> > On Wed, 2004-07-21 at 13:39, sankarshana rao wrote:
> > > Hi,
> > > I want to call namei() function in order to derive
> > an
> > > inode from a path name. Can I do this inside a
> > kernel
> > > module???
> > 
> > >From a kernel module, you should probably call
> > path_lookup().
> > 
> > Shaggy
-- 
David Kleikamp
IBM Linux Technology Center


  reply	other threads:[~2004-07-21 20:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-21 18:39 sankarshana rao
2004-07-21 20:25 ` Dave Kleikamp
2004-07-21 20:46   ` sankarshana rao
2004-07-21 20:56     ` Dave Kleikamp [this message]
2004-07-21 21:09     ` Richard B. Johnson
2004-07-21 22:57       ` sankarshana rao
2004-07-22 12:36         ` Dave Kleikamp
2004-07-22 14:23         ` Paulo Marques
2004-07-27  1:28           ` sankarshana rao
2004-07-27 11:18             ` Paulo Marques

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=1090443377.17488.36.camel@shaggy.austin.ibm.com \
    --to=shaggy@austin.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=san_wipro@yahoo.com \
    /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®