xref: /haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/ioctl.h (revision 4c8e85b316c35a9161f5a1c50ad70bc91c83a76f)
1 /*
2  *
3  * Copyright (c) 2014 Jean-Pierre Andre
4  *
5  */
6 
7 /*
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program (in the main directory of the NTFS-3G
20  * distribution in the file COPYING); if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22  */
23 
24 #ifndef IOCTL_H
25 #define IOCTL_H
26 
27 /*
28  * Using an "unsigned long cmd" internally, like in <sys/ioctl.h> for Linux
29  * Note however that fuse truncates the arg to 32 bits, and that
30  * some commands (e.g. FITRIM) do not fit in a signed 32 bit field.
31  */
32 int ntfs_ioctl(ntfs_inode *ni, unsigned long cmd, void *arg,
33                         unsigned int flags, void *data);
34 
35 #endif /* IOCTL_H */
36