1 /* SPDX-License-Identifier: GPL-2.0 */ << 2 /* 1 /* 3 * Copyright (C) 2007 Red Hat. All rights res 2 * Copyright (C) 2007 Red Hat. All rights reserved. >> 3 * >> 4 * This program is free software; you can redistribute it and/or >> 5 * modify it under the terms of the GNU General Public >> 6 * License v2 as published by the Free Software Foundation. >> 7 * >> 8 * This program is distributed in the hope that it will be useful, >> 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of >> 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU >> 11 * General Public License for more details. >> 12 * >> 13 * You should have received a copy of the GNU General Public >> 14 * License along with this program; if not, write to the >> 15 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, >> 16 * Boston, MA 021110-1307, USA. 4 */ 17 */ 5 18 6 #ifndef BTRFS_XATTR_H !! 19 #ifndef __XATTR__ 7 #define BTRFS_XATTR_H !! 20 #define __XATTR__ 8 21 9 struct dentry; !! 22 #include <linux/xattr.h> 10 struct inode; << 11 struct qstr; << 12 struct xattr_handler; << 13 struct btrfs_trans_handle; << 14 23 15 extern const struct xattr_handler * const btrf !! 24 extern const struct xattr_handler *btrfs_xattr_handlers[]; 16 25 17 int btrfs_getxattr(const struct inode *inode, !! 26 extern ssize_t __btrfs_getxattr(struct inode *inode, const char *name, 18 void *buffer, size_t size); 27 void *buffer, size_t size); 19 int btrfs_setxattr(struct btrfs_trans_handle * !! 28 extern int __btrfs_setxattr(struct btrfs_trans_handle *trans, 20 const char *name, const voi !! 29 struct inode *inode, const char *name, 21 int btrfs_setxattr_trans(struct inode *inode, !! 30 const void *value, size_t size, int flags); 22 const void *value, si << 23 ssize_t btrfs_listxattr(struct dentry *dentry, << 24 31 25 int btrfs_xattr_security_init(struct btrfs_tra !! 32 extern int btrfs_xattr_security_init(struct btrfs_trans_handle *trans, 26 struct in 33 struct inode *inode, struct inode *dir, 27 const str 34 const struct qstr *qstr); 28 35 29 #endif !! 36 #endif /* __XATTR__ */ 30 37
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.