Dave Chinner | 0b61f8a | 2018-06-05 19:42:14 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
sandeen@sandeen.net | d5547f9 | 2008-11-25 21:20:08 -0600 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2008 Silicon Graphics, Inc. |
| 4 | * All Rights Reserved. |
sandeen@sandeen.net | d5547f9 | 2008-11-25 21:20:08 -0600 | [diff] [blame] | 5 | */ |
| 6 | #ifndef __XFS_IOCTL_H__ |
| 7 | #define __XFS_IOCTL_H__ |
| 8 | |
| 9 | extern int |
| 10 | xfs_ioc_space( |
sandeen@sandeen.net | d5547f9 | 2008-11-25 21:20:08 -0600 | [diff] [blame] | 11 | struct file *filp, |
sandeen@sandeen.net | d5547f9 | 2008-11-25 21:20:08 -0600 | [diff] [blame] | 12 | unsigned int cmd, |
| 13 | xfs_flock64_t *bf); |
| 14 | |
Dave Chinner | a133d95 | 2013-08-12 20:49:48 +1000 | [diff] [blame] | 15 | int |
| 16 | xfs_ioc_swapext( |
| 17 | xfs_swapext_t *sxp); |
| 18 | |
sandeen@sandeen.net | d5547f9 | 2008-11-25 21:20:08 -0600 | [diff] [blame] | 19 | extern int |
| 20 | xfs_find_handle( |
| 21 | unsigned int cmd, |
| 22 | xfs_fsop_handlereq_t *hreq); |
| 23 | |
| 24 | extern int |
| 25 | xfs_open_by_handle( |
sandeen@sandeen.net | d5547f9 | 2008-11-25 21:20:08 -0600 | [diff] [blame] | 26 | struct file *parfilp, |
Christoph Hellwig | ab596ad | 2009-01-19 02:02:57 +0100 | [diff] [blame] | 27 | xfs_fsop_handlereq_t *hreq); |
sandeen@sandeen.net | d5547f9 | 2008-11-25 21:20:08 -0600 | [diff] [blame] | 28 | |
| 29 | extern int |
| 30 | xfs_readlink_by_handle( |
Christoph Hellwig | ab596ad | 2009-01-19 02:02:57 +0100 | [diff] [blame] | 31 | struct file *parfilp, |
| 32 | xfs_fsop_handlereq_t *hreq); |
sandeen@sandeen.net | 2875097 | 2008-11-25 21:20:15 -0600 | [diff] [blame] | 33 | |
| 34 | extern int |
| 35 | xfs_attrmulti_attr_get( |
| 36 | struct inode *inode, |
Dave Chinner | a9273ca | 2010-01-20 10:47:48 +1100 | [diff] [blame] | 37 | unsigned char *name, |
| 38 | unsigned char __user *ubuf, |
Darrick J. Wong | c8ce540 | 2017-06-16 11:00:05 -0700 | [diff] [blame] | 39 | uint32_t *len, |
| 40 | uint32_t flags); |
sandeen@sandeen.net | 2875097 | 2008-11-25 21:20:15 -0600 | [diff] [blame] | 41 | |
| 42 | extern int |
Dave Chinner | a9273ca | 2010-01-20 10:47:48 +1100 | [diff] [blame] | 43 | xfs_attrmulti_attr_set( |
sandeen@sandeen.net | 2875097 | 2008-11-25 21:20:15 -0600 | [diff] [blame] | 44 | struct inode *inode, |
Dave Chinner | a9273ca | 2010-01-20 10:47:48 +1100 | [diff] [blame] | 45 | unsigned char *name, |
| 46 | const unsigned char __user *ubuf, |
Darrick J. Wong | c8ce540 | 2017-06-16 11:00:05 -0700 | [diff] [blame] | 47 | uint32_t len, |
| 48 | uint32_t flags); |
sandeen@sandeen.net | 2875097 | 2008-11-25 21:20:15 -0600 | [diff] [blame] | 49 | |
| 50 | extern int |
| 51 | xfs_attrmulti_attr_remove( |
| 52 | struct inode *inode, |
Dave Chinner | a9273ca | 2010-01-20 10:47:48 +1100 | [diff] [blame] | 53 | unsigned char *name, |
Darrick J. Wong | c8ce540 | 2017-06-16 11:00:05 -0700 | [diff] [blame] | 54 | uint32_t flags); |
sandeen@sandeen.net | 2875097 | 2008-11-25 21:20:15 -0600 | [diff] [blame] | 55 | |
Christoph Hellwig | ab596ad | 2009-01-19 02:02:57 +0100 | [diff] [blame] | 56 | extern struct dentry * |
| 57 | xfs_handle_to_dentry( |
| 58 | struct file *parfilp, |
| 59 | void __user *uhandle, |
| 60 | u32 hlen); |
| 61 | |
Christoph Hellwig | ddcd856 | 2008-12-03 07:55:34 -0500 | [diff] [blame] | 62 | extern long |
Christoph Hellwig | 4d4be48 | 2008-12-09 04:47:33 -0500 | [diff] [blame] | 63 | xfs_file_ioctl( |
| 64 | struct file *filp, |
Christoph Hellwig | ddcd856 | 2008-12-03 07:55:34 -0500 | [diff] [blame] | 65 | unsigned int cmd, |
Christoph Hellwig | 4d4be48 | 2008-12-09 04:47:33 -0500 | [diff] [blame] | 66 | unsigned long p); |
Christoph Hellwig | ddcd856 | 2008-12-03 07:55:34 -0500 | [diff] [blame] | 67 | |
| 68 | extern long |
Christoph Hellwig | 4d4be48 | 2008-12-09 04:47:33 -0500 | [diff] [blame] | 69 | xfs_file_compat_ioctl( |
Christoph Hellwig | ddcd856 | 2008-12-03 07:55:34 -0500 | [diff] [blame] | 70 | struct file *file, |
| 71 | unsigned int cmd, |
| 72 | unsigned long arg); |
| 73 | |
Dave Chinner | c24b5df | 2013-08-12 20:49:45 +1000 | [diff] [blame] | 74 | extern int |
| 75 | xfs_set_dmattrs( |
| 76 | struct xfs_inode *ip, |
Darrick J. Wong | 65a7935 | 2017-11-09 09:34:28 -0800 | [diff] [blame] | 77 | uint evmask, |
| 78 | uint16_t state); |
Dave Chinner | c24b5df | 2013-08-12 20:49:45 +1000 | [diff] [blame] | 79 | |
sandeen@sandeen.net | d5547f9 | 2008-11-25 21:20:08 -0600 | [diff] [blame] | 80 | #endif |