| 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 |
| 14 | xfs_ioc_swapext( |
| 15 | xfs_swapext_t *sxp); |
| 16 | |
| 17 | extern int |
| 18 | xfs_fileattr_get( |
| 19 | struct dentry *dentry, |
| 20 | struct fileattr *fa); |
| 21 | |
| 22 | extern int |
| 23 | xfs_fileattr_set( |
| 24 | struct mnt_idmap *idmap, |
| 25 | struct dentry *dentry, |
| 26 | struct fileattr *fa); |
| 27 | |
| 28 | extern long |
| 29 | xfs_file_ioctl( |
| 30 | struct file *filp, |
| 31 | unsigned int cmd, |
| 32 | unsigned long p); |
| 33 | |
| 34 | extern long |
| 35 | xfs_file_compat_ioctl( |
| 36 | struct file *file, |
| 37 | unsigned int cmd, |
| 38 | unsigned long arg); |
| 39 | |
| 40 | int xfs_fsbulkstat_one_fmt(struct xfs_ibulk *breq, |
| 41 | const struct xfs_bulkstat *bstat); |
| 42 | int xfs_fsinumbers_fmt(struct xfs_ibulk *breq, const struct xfs_inumbers *igrp); |
| 43 | |
| 44 | #endif |