~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/fs/jfs/jfs_xattr.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 /*
  3  *   Copyright (C) International Business Machines Corp., 2000-2002
  4  */
  5 
  6 #ifndef H_JFS_XATTR
  7 #define H_JFS_XATTR
  8 
  9 #include <linux/xattr.h>
 10 
 11 /*
 12  * jfs_ea_list describe the on-disk format of the extended attributes.
 13  * I know the null-terminator is redundant since namelen is stored, but
 14  * I am maintaining compatibility with OS/2 where possible.
 15  */
 16 struct jfs_ea {
 17         u8 flag;        /* Unused? */
 18         u8 namelen;     /* Length of name */
 19         __le16 valuelen;        /* Length of value */
 20         char name[];    /* Attribute name (includes null-terminator) */
 21 };                      /* Value immediately follows name */
 22 
 23 struct jfs_ea_list {
 24         __le32 size;            /* overall size */
 25         struct jfs_ea ea[];     /* Variable length list */
 26 };
 27 
 28 /* Macros for defining maximum number of bytes supported for EAs */
 29 #define MAXEASIZE       65535
 30 #define MAXEALISTSIZE   MAXEASIZE
 31 
 32 /*
 33  * some macros for dealing with variable length EA lists.
 34  */
 35 #define EA_SIZE(ea) \
 36         (sizeof (struct jfs_ea) + (ea)->namelen + 1 + \
 37          le16_to_cpu((ea)->valuelen))
 38 #define NEXT_EA(ea) ((struct jfs_ea *) (((char *) (ea)) + (EA_SIZE (ea))))
 39 #define FIRST_EA(ealist) ((ealist)->ea)
 40 #define EALIST_SIZE(ealist) le32_to_cpu((ealist)->size)
 41 #define END_EALIST(ealist) \
 42         ((struct jfs_ea *) (((char *) (ealist)) + EALIST_SIZE(ealist)))
 43 
 44 extern int __jfs_setxattr(tid_t, struct inode *, const char *, const void *,
 45                           size_t, int);
 46 extern ssize_t __jfs_getxattr(struct inode *, const char *, void *, size_t);
 47 extern ssize_t jfs_listxattr(struct dentry *, char *, size_t);
 48 
 49 extern const struct xattr_handler * const jfs_xattr_handlers[];
 50 
 51 #ifdef CONFIG_JFS_SECURITY
 52 extern int jfs_init_security(tid_t, struct inode *, struct inode *,
 53                              const struct qstr *);
 54 #else
 55 static inline int jfs_init_security(tid_t tid, struct inode *inode,
 56                                     struct inode *dir, const struct qstr *qstr)
 57 {
 58         return 0;
 59 }
 60 #endif
 61 
 62 #endif  /* H_JFS_XATTR */
 63 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php