All of lore.kernel.org
 help / color / mirror / Atom feed
* Can give some help?
@ 2012-06-29 13:41 Zhi Yong Wu
  2012-06-29 13:47 ` Hugo Mills
  0 siblings, 1 reply; 3+ messages in thread
From: Zhi Yong Wu @ 2012-06-29 13:41 UTC (permalink / raw)
  To: linux-btrfs

HI,

Can anyone let me know where the funtions are declared or defined,
such as btrfs_header_nritems(), btrfs_header_level(), etc? thanks.

-- 
Regards,

Zhi Yong Wu

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can give some help?
  2012-06-29 13:41 Can give some help? Zhi Yong Wu
@ 2012-06-29 13:47 ` Hugo Mills
  2012-06-29 14:07   ` Zhi Yong Wu
  0 siblings, 1 reply; 3+ messages in thread
From: Hugo Mills @ 2012-06-29 13:47 UTC (permalink / raw)
  To: Zhi Yong Wu; +Cc: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 652 bytes --]

On Fri, Jun 29, 2012 at 09:41:47PM +0800, Zhi Yong Wu wrote:
> HI,
> 
> Can anyone let me know where the funtions are declared or defined,
> such as btrfs_header_nritems(), btrfs_header_level(), etc? thanks.

   ctree.h, somewhere around or after line 1550. They're all accessor
functions, defined by a set of macros. Look for the *_SETGET_* macros.
The actual definitions of BTRFS_SETGET_FUNCS are in struct-funcs.h

   Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
       --- Great oxymorons of the world, no. 1: Family Holiday ---       

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can give some help?
  2012-06-29 13:47 ` Hugo Mills
@ 2012-06-29 14:07   ` Zhi Yong Wu
  0 siblings, 0 replies; 3+ messages in thread
From: Zhi Yong Wu @ 2012-06-29 14:07 UTC (permalink / raw)
  To: Hugo Mills, Zhi Yong Wu, linux-btrfs

On Fri, Jun 29, 2012 at 9:47 PM, Hugo Mills <hugo@carfax.org.uk> wrote:
> On Fri, Jun 29, 2012 at 09:41:47PM +0800, Zhi Yong Wu wrote:
>> HI,
>>
>> Can anyone let me know where the funtions are declared or defined,
>> such as btrfs_header_nritems(), btrfs_header_level(), etc? thanks.
>
>   ctree.h, somewhere around or after line 1550. They're all accessor
> functions, defined by a set of macros. Look for the *_SETGET_* macros.
> The actual definitions of BTRFS_SETGET_FUNCS are in struct-funcs.h
Great, thanks.

>
>   Hugo.
>
> --
> === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
>  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
>       --- Great oxymorons of the world, no. 1: Family Holiday ---



-- 
Regards,

Zhi Yong Wu

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-29 14:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-29 13:41 Can give some help? Zhi Yong Wu
2012-06-29 13:47 ` Hugo Mills
2012-06-29 14:07   ` Zhi Yong Wu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.