162306a36Sopenharmony_ci/* SPDX-License-Identifier: LGPL-2.1 */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright IBM Corporation, 2010
462306a36Sopenharmony_ci * Author Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
562306a36Sopenharmony_ci */
662306a36Sopenharmony_ci#ifndef FS_9P_XATTR_H
762306a36Sopenharmony_ci#define FS_9P_XATTR_H
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci#include <linux/xattr.h>
1062306a36Sopenharmony_ci#include <net/9p/9p.h>
1162306a36Sopenharmony_ci#include <net/9p/client.h>
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ciextern const struct xattr_handler *v9fs_xattr_handlers[];
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_cissize_t v9fs_fid_xattr_get(struct p9_fid *fid, const char *name,
1662306a36Sopenharmony_ci			   void *buffer, size_t buffer_size);
1762306a36Sopenharmony_cissize_t v9fs_xattr_get(struct dentry *dentry, const char *name,
1862306a36Sopenharmony_ci		       void *buffer, size_t buffer_size);
1962306a36Sopenharmony_ciint v9fs_fid_xattr_set(struct p9_fid *fid, const char *name,
2062306a36Sopenharmony_ci		       const void *value, size_t value_len, int flags);
2162306a36Sopenharmony_ciint v9fs_xattr_set(struct dentry *dentry, const char *name,
2262306a36Sopenharmony_ci		   const void *value, size_t value_len, int flags);
2362306a36Sopenharmony_cissize_t v9fs_listxattr(struct dentry *dentry, char *buffer,
2462306a36Sopenharmony_ci		       size_t buffer_size);
2562306a36Sopenharmony_ci#endif /* FS_9P_XATTR_H */
26