xfs_ioctl.h 1.3 KB
Newer Older
D
Dave Chinner 已提交
1
// SPDX-License-Identifier: GPL-2.0
2 3 4 5 6 7 8 9 10 11 12 13 14
/*
 * Copyright (c) 2008 Silicon Graphics, Inc.
 * All Rights Reserved.
 */
#ifndef __XFS_IOCTL_H__
#define __XFS_IOCTL_H__

extern int
xfs_ioc_space(
	struct file		*filp,
	unsigned int		cmd,
	xfs_flock64_t		*bf);

D
Dave Chinner 已提交
15 16 17 18
int
xfs_ioc_swapext(
	xfs_swapext_t	*sxp);

19 20 21 22 23 24 25 26
extern int
xfs_find_handle(
	unsigned int		cmd,
	xfs_fsop_handlereq_t	*hreq);

extern int
xfs_open_by_handle(
	struct file		*parfilp,
27
	xfs_fsop_handlereq_t	*hreq);
28 29 30

extern int
xfs_readlink_by_handle(
31 32
	struct file		*parfilp,
	xfs_fsop_handlereq_t	*hreq);
33 34 35 36

extern int
xfs_attrmulti_attr_get(
	struct inode		*inode,
37 38
	unsigned char		*name,
	unsigned char		__user *ubuf,
39 40
	uint32_t		*len,
	uint32_t		flags);
41 42

extern int
43
xfs_attrmulti_attr_set(
44
	struct inode		*inode,
45 46
	unsigned char		*name,
	const unsigned char	__user *ubuf,
47 48
	uint32_t		len,
	uint32_t		flags);
49 50 51 52

extern int
xfs_attrmulti_attr_remove(
	struct inode		*inode,
53
	unsigned char		*name,
54
	uint32_t		flags);
55

56 57 58 59 60 61
extern struct dentry *
xfs_handle_to_dentry(
	struct file		*parfilp,
	void __user		*uhandle,
	u32			hlen);

62
extern long
63 64
xfs_file_ioctl(
	struct file		*filp,
65
	unsigned int		cmd,
66
	unsigned long		p);
67 68

extern long
69
xfs_file_compat_ioctl(
70 71 72 73
	struct file		*file,
	unsigned int		cmd,
	unsigned long		arg);

D
Dave Chinner 已提交
74 75 76
extern int
xfs_set_dmattrs(
	struct xfs_inode	*ip,
D
Darrick J. Wong 已提交
77 78
	uint			evmask,
	uint16_t		state);
D
Dave Chinner 已提交
79

80
#endif