Deleted Added
full compact
dkio.h (178414) dkio.h (240868)
1/*
2 * CDDL HEADER START
3 *
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.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 4 unchanged lines hidden (view full) ---

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]
18 *
19 * CDDL HEADER END
20 *
1/*
2 * CDDL HEADER START
3 *
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.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 4 unchanged lines hidden (view full) ---

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]
18 *
19 * CDDL HEADER END
20 *
21 * $FreeBSD: head/sys/cddl/compat/opensolaris/sys/dkio.h 178414 2008-04-22 07:43:00Z jb $
21 * $FreeBSD: head/sys/cddl/compat/opensolaris/sys/dkio.h 240868 2012-09-23 19:40:58Z pjd $
22 */
23/*
24 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
25 * Use is subject to license terms.
26 */
27
28#ifndef _OPENSOLARIS_SYS_DKIO_H_
29#define _OPENSOLARIS_SYS_DKIO_H_

--- 40 unchanged lines hidden (view full) ---

70 *
71 * In the callback case: if the ioctl returns 0, a callback WILL be performed.
72 * If the ioctl returns non-zero, a callback will NOT be performed.
73 * NOTE: In some cases, the callback may be done BEFORE the ioctl call
74 * returns. The caller's locking strategy should be prepared for this case.
75 */
76#define DKIOCFLUSHWRITECACHE (DKIOC|34) /* flush cache to phys medium */
77
22 */
23/*
24 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
25 * Use is subject to license terms.
26 */
27
28#ifndef _OPENSOLARIS_SYS_DKIO_H_
29#define _OPENSOLARIS_SYS_DKIO_H_

--- 40 unchanged lines hidden (view full) ---

70 *
71 * In the callback case: if the ioctl returns 0, a callback WILL be performed.
72 * If the ioctl returns non-zero, a callback will NOT be performed.
73 * NOTE: In some cases, the callback may be done BEFORE the ioctl call
74 * returns. The caller's locking strategy should be prepared for this case.
75 */
76#define DKIOCFLUSHWRITECACHE (DKIOC|34) /* flush cache to phys medium */
77
78#define DKIOCTRIM (DKIOC|35) /* TRIM a block */
79
78struct dk_callback {
79 void (*dkc_callback)(void *dkc_cookie, int error);
80 void *dkc_cookie;
81};
82
83#ifdef __cplusplus
84}
85#endif
86
87#endif /* _OPENSOLARIS_SYS_DKIO_H_ */
80struct dk_callback {
81 void (*dkc_callback)(void *dkc_cookie, int error);
82 void *dkc_cookie;
83};
84
85#ifdef __cplusplus
86}
87#endif
88
89#endif /* _OPENSOLARIS_SYS_DKIO_H_ */