xref: /linux/fs/xfs/xfs_ioctl.h (revision 75663f575f34291007852859486cafc08dc10d0e)
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Copyright (c) 2008 Silicon Graphics, Inc.
4  * All Rights Reserved.
5  */
6 #ifndef __XFS_IOCTL_H__
7 #define __XFS_IOCTL_H__
8 
9 struct xfs_bstat;
10 struct xfs_ibulk;
11 struct xfs_inogrp;
12 
13 int xfs_swapext(struct xfs_swapext *sxp);
14 
15 extern int
16 xfs_fileattr_get(
17 	struct dentry		*dentry,
18 	struct file_kattr	*fa);
19 
20 extern int
21 xfs_fileattr_set(
22 	const struct mnt_idmap	*idmap,
23 	struct dentry		*dentry,
24 	struct file_kattr	*fa);
25 
26 extern long
27 xfs_file_ioctl(
28 	struct file		*filp,
29 	unsigned int		cmd,
30 	unsigned long		p);
31 
32 extern long
33 xfs_file_compat_ioctl(
34 	struct file		*file,
35 	unsigned int		cmd,
36 	unsigned long		arg);
37 
38 int xfs_fsbulkstat_one_fmt(struct xfs_ibulk *breq,
39 			   const struct xfs_bulkstat *bstat);
40 int xfs_fsinumbers_fmt(struct xfs_ibulk *breq, const struct xfs_inumbers *igrp);
41 
42 #endif
43