fs/btrfs/xattr.h

Source file repositories/reference/linux-study-clean/fs/btrfs/xattr.h

File Facts

System
Linux kernel
Corpus path
fs/btrfs/xattr.h
Extension
.h
Size
909 bytes
Lines
32
Domain
Core OS
Bucket
VFS And Filesystem Core
Inferred role
Core OS: implementation source
Status
source implementation candidate

Why This File Exists

Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef BTRFS_XATTR_H
#define BTRFS_XATTR_H

#include <linux/types.h>

struct dentry;
struct inode;
struct qstr;
struct xattr_handler;
struct btrfs_trans_handle;

extern const struct xattr_handler * const btrfs_xattr_handlers[];

int btrfs_getxattr(const struct inode *inode, const char *name,
		void *buffer, size_t size);
int btrfs_setxattr(struct btrfs_trans_handle *trans, struct inode *inode,
		   const char *name, const void *value, size_t size, int flags);
int btrfs_setxattr_trans(struct inode *inode, const char *name,
			 const void *value, size_t size, int flags);
ssize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size);

int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
				     struct inode *inode, struct inode *dir,
				     const struct qstr *qstr);

#endif

Annotation

Implementation Notes