Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
xfs_attr_sf.h File Reference

Go to the source code of this file.

Data Structures

struct  xfs_attr_shortform
 
struct  xfs_attr_shortform::xfs_attr_sf_hdr
 
struct  xfs_attr_shortform::xfs_attr_sf_entry
 
struct  xfs_attr_sf_sort
 

Macros

#define XFS_ATTR_SF_ENTSIZE_BYNAME(nlen, vlen)
 
#define XFS_ATTR_SF_ENTSIZE_MAX
 
#define XFS_ATTR_SF_ENTSIZE(sfep)
 
#define XFS_ATTR_SF_NEXTENTRY(sfep)
 
#define XFS_ATTR_SF_TOTSIZE(dp)
 

Typedefs

typedef struct xfs_attr_shortform xfs_attr_shortform_t
 
typedef struct xfs_attr_sf_hdr xfs_attr_sf_hdr_t
 
typedef struct xfs_attr_sf_entry xfs_attr_sf_entry_t
 
typedef struct xfs_attr_sf_sort xfs_attr_sf_sort_t
 

Macro Definition Documentation

#define XFS_ATTR_SF_ENTSIZE (   sfep)
Value:
/* space an entry uses */ \
((int)sizeof(xfs_attr_sf_entry_t)-1 + (sfep)->namelen+(sfep)->valuelen)

Definition at line 62 of file xfs_attr_sf.h.

#define XFS_ATTR_SF_ENTSIZE_BYNAME (   nlen,
  vlen 
)
Value:
/* space name/value uses */ \
(((int)sizeof(xfs_attr_sf_entry_t)-1 + (nlen)+(vlen)))

Definition at line 58 of file xfs_attr_sf.h.

#define XFS_ATTR_SF_ENTSIZE_MAX
Value:
/* max space for name&value */ \
((1 << (NBBY*(int)sizeof(__uint8_t))) - 1)

Definition at line 60 of file xfs_attr_sf.h.

#define XFS_ATTR_SF_NEXTENTRY (   sfep)
Value:
/* next entry in struct */ \
((xfs_attr_sf_entry_t *)((char *)(sfep) + XFS_ATTR_SF_ENTSIZE(sfep)))

Definition at line 64 of file xfs_attr_sf.h.

#define XFS_ATTR_SF_TOTSIZE (   dp)
Value:
/* total space in use */ \
((dp)->i_afp->if_u1.if_data))->hdr.totsize))

Definition at line 66 of file xfs_attr_sf.h.

Typedef Documentation

typedef struct xfs_attr_sf_entry xfs_attr_sf_entry_t

Definition at line 44 of file xfs_attr_sf.h.

typedef struct xfs_attr_sf_hdr xfs_attr_sf_hdr_t

Definition at line 43 of file xfs_attr_sf.h.