xref: /titanic_50/usr/src/uts/common/sys/fs/smbfs_ioctl.h (revision 7568150a58e78021968b6c22bc28e9787b33496a)
1*7568150aSgwr /*
2*7568150aSgwr  * CDDL HEADER START
3*7568150aSgwr  *
4*7568150aSgwr  * The contents of this file are subject to the terms of the
5*7568150aSgwr  * Common Development and Distribution License (the "License").
6*7568150aSgwr  * You may not use this file except in compliance with the License.
7*7568150aSgwr  *
8*7568150aSgwr  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*7568150aSgwr  * or http://www.opensolaris.org/os/licensing.
10*7568150aSgwr  * See the License for the specific language governing permissions
11*7568150aSgwr  * and limitations under the License.
12*7568150aSgwr  *
13*7568150aSgwr  * When distributing Covered Code, include this CDDL HEADER in each
14*7568150aSgwr  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*7568150aSgwr  * If applicable, add the following below this CDDL HEADER, with the
16*7568150aSgwr  * fields enclosed by brackets "[]" replaced with your own identifying
17*7568150aSgwr  * information: Portions Copyright [yyyy] [name of copyright owner]
18*7568150aSgwr  *
19*7568150aSgwr  * CDDL HEADER END
20*7568150aSgwr  */
21*7568150aSgwr 
22*7568150aSgwr /*
23*7568150aSgwr  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24*7568150aSgwr  * Use is subject to license terms.
25*7568150aSgwr  */
26*7568150aSgwr 
27*7568150aSgwr #ifndef _SMBFS_IOCTL_H
28*7568150aSgwr #define	_SMBFS_IOCTL_H
29*7568150aSgwr 
30*7568150aSgwr #pragma ident	"%Z%%M%	%I%	%E% SMI"
31*7568150aSgwr 
32*7568150aSgwr /*
33*7568150aSgwr  * Project private IOCTL interface provided by SMBFS.
34*7568150aSgwr  */
35*7568150aSgwr 
36*7568150aSgwr #include <sys/ioccom.h>
37*7568150aSgwr 
38*7568150aSgwr #ifdef __cplusplus
39*7568150aSgwr extern "C" {
40*7568150aSgwr #endif
41*7568150aSgwr 
42*7568150aSgwr typedef struct ioc_sdbuf {
43*7568150aSgwr 	uint64_t addr;		/* buffer address (user space) */
44*7568150aSgwr 	uint32_t alloc;		/* allocated length */
45*7568150aSgwr 	uint32_t used;		/* content length */
46*7568150aSgwr 	uint32_t selector;	/* i.e. DACL_SECURITY_INFORMATION */
47*7568150aSgwr } ioc_sdbuf_t;
48*7568150aSgwr 
49*7568150aSgwr /*
50*7568150aSgwr  * SMBFS ioctl codes
51*7568150aSgwr  *
52*7568150aSgwr  * We only need a couple of these, so (re)using some
53*7568150aSgwr  * FS-specific ioctl codes from sys/filio.h
54*7568150aSgwr  * Data for both is ioc_sdbuf_t
55*7568150aSgwr  */
56*7568150aSgwr 
57*7568150aSgwr #define	SMBFSIO_GETSD		_IO('f', 81)
58*7568150aSgwr #define	SMBFSIO_SETSD		_IO('f', 82)
59*7568150aSgwr 
60*7568150aSgwr #ifdef __cplusplus
61*7568150aSgwr }
62*7568150aSgwr #endif
63*7568150aSgwr 
64*7568150aSgwr #endif /* _SMBFS_IOCTL_H */
65