Linux Audio

Check our new training course

Loading...
v6.13.7
 1/* SPDX-License-Identifier: LGPL-2.1 */
 2/*
 3 * Copyright IBM Corporation, 2010
 4 * Author Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
 
 
 
 
 
 
 
 
 
 5 */
 6#ifndef FS_9P_XATTR_H
 7#define FS_9P_XATTR_H
 8
 9#include <linux/xattr.h>
10#include <net/9p/9p.h>
11#include <net/9p/client.h>
12
13extern const struct xattr_handler * const v9fs_xattr_handlers[];
 
 
 
 
 
14
15ssize_t v9fs_fid_xattr_get(struct p9_fid *fid, const char *name,
16			   void *buffer, size_t buffer_size);
17ssize_t v9fs_xattr_get(struct dentry *dentry, const char *name,
18		       void *buffer, size_t buffer_size);
19int v9fs_fid_xattr_set(struct p9_fid *fid, const char *name,
20		       const void *value, size_t value_len, int flags);
21int v9fs_xattr_set(struct dentry *dentry, const char *name,
22		   const void *value, size_t value_len, int flags);
23ssize_t v9fs_listxattr(struct dentry *dentry, char *buffer,
24		       size_t buffer_size);
25#endif /* FS_9P_XATTR_H */
v3.15
 
 1/*
 2 * Copyright IBM Corporation, 2010
 3 * Author Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
 4 *
 5 * This program is free software; you can redistribute it and/or modify it
 6 * under the terms of version 2.1 of the GNU Lesser General Public License
 7 * as published by the Free Software Foundation.
 8 *
 9 * This program is distributed in the hope that it would be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 *
13 */
14#ifndef FS_9P_XATTR_H
15#define FS_9P_XATTR_H
16
17#include <linux/xattr.h>
18#include <net/9p/9p.h>
19#include <net/9p/client.h>
20
21extern const struct xattr_handler *v9fs_xattr_handlers[];
22extern struct xattr_handler v9fs_xattr_user_handler;
23extern struct xattr_handler v9fs_xattr_trusted_handler;
24extern struct xattr_handler v9fs_xattr_security_handler;
25extern const struct xattr_handler v9fs_xattr_acl_access_handler;
26extern const struct xattr_handler v9fs_xattr_acl_default_handler;
27
28extern ssize_t v9fs_fid_xattr_get(struct p9_fid *, const char *,
29				  void *, size_t);
30extern ssize_t v9fs_xattr_get(struct dentry *, const char *,
31			      void *, size_t);
32extern int v9fs_fid_xattr_set(struct p9_fid *, const char *,
33			  const void *, size_t, int);
34extern int v9fs_xattr_set(struct dentry *, const char *,
35			  const void *, size_t, int);
36extern ssize_t v9fs_listxattr(struct dentry *, char *, size_t);
 
37#endif /* FS_9P_XATTR_H */