docs/how-to-build.md: use proper markup for directory names
[unleashed/tickless.git] / include / sys / strredir.h
blobde31fe9e0b345f355377ffacbb2d41450199246c
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
23 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #ifndef _SYS_STRREDIR_H
28 #define _SYS_STRREDIR_H
30 #pragma ident "%Z%%M% %I% %E% SMI"
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
37 * strredir.h: Declarations for the redirection driver and its matching
38 * STREAMS module.
42 * The module's module id.
44 * XXX: Since there's no authority responsible for administering this name
45 * space, there's no guarantee that this value is unique. That wouldn't
46 * be so bad except that the DKI now suggests that ioctl cookie values
47 * should be based on module id to make them unique...
49 #define STRREDIR_MODID 7326
52 * Redirection ioctls:
54 #define SRIOCSREDIR ((STRREDIR_MODID<<16) | 1) /* set redir target */
55 #define SRIOCISREDIR ((STRREDIR_MODID<<16) | 2) /* is redir target? */
59 * Everything from here on is of interest only to the kernel.
61 #ifdef _KERNEL
63 /* name of the module used to detect closes on redirected streams */
64 #define STRREDIR_MOD "redirmod"
66 extern void srpop(vnode_t *, boolean_t);
68 #endif /* _KERNEL */
70 #ifdef __cplusplus
72 #endif
74 #endif /* _SYS_STRREDIR_H */