2006-05-26 04:15:34

by Xin Zhao

[permalink] [raw]
Subject: why svc_export_lookup() has no implementation?

I noticed that functions like exp_get_by_name() calls function
svc_export_lookup(). But I cannot find the implementation of
svc_export_lookup(). I can only find the function definition. HOw can
this happen?

Can someone give me a hand?

Thanks!

-x


2006-05-26 04:21:32

by Randy Dunlap

[permalink] [raw]
Subject: Re: why svc_export_lookup() has no implementation?

On Fri, 26 May 2006 00:15:32 -0400 Xin Zhao wrote:

> I noticed that functions like exp_get_by_name() calls function
> svc_export_lookup(). But I cannot find the implementation of
> svc_export_lookup(). I can only find the function definition. HOw can
> this happen?
>
> Can someone give me a hand?

Sounds like you need better tools or get them to search like
you mean for them to search.

seee fs/nfsd/export.c

---
~Randy

2006-05-26 04:34:40

by NeilBrown

[permalink] [raw]
Subject: Re: why svc_export_lookup() has no implementation?

On Friday May 26, [email protected] wrote:
> I noticed that functions like exp_get_by_name() calls function
> svc_export_lookup(). But I cannot find the implementation of
> svc_export_lookup(). I can only find the function definition. HOw can
> this happen?
>
> Can someone give me a hand?

Look at and understand DefineCacheLookup (in
include/linux/sunrpc/cache.h).

Then look for places that it is used.

But if you find you cannot stomach that, but assured that you aren't
alone and have a look in something newer than 2.6.16. There-in, and
Randy has suggest, it will be easy to find the definition.

NeilBrown

2006-05-26 06:07:00

by Xin Zhao

[permalink] [raw]
Subject: Re: why svc_export_lookup() has no implementation?

Thanks a lot! Neil. Now I know what happened. :)

Xin

On 5/26/06, Neil Brown <[email protected]> wrote:
> On Friday May 26, [email protected] wrote:
> > I noticed that functions like exp_get_by_name() calls function
> > svc_export_lookup(). But I cannot find the implementation of
> > svc_export_lookup(). I can only find the function definition. HOw can
> > this happen?
> >
> > Can someone give me a hand?
>
> Look at and understand DefineCacheLookup (in
> include/linux/sunrpc/cache.h).
>
> Then look for places that it is used.
>
> But if you find you cannot stomach that, but assured that you aren't
> alone and have a look in something newer than 2.6.16. There-in, and
> Randy has suggest, it will be easy to find the definition.
>
> NeilBrown
>