xref: /illumos-gate/usr/src/uts/common/sys/lofi_impl.h (revision 8ae05c10)
1*8ae05c10SToomas Soome /*
2*8ae05c10SToomas Soome  * This file and its contents are supplied under the terms of the
3*8ae05c10SToomas Soome  * Common Development and Distribution License ("CDDL"), version 1.0.
4*8ae05c10SToomas Soome  * You may only use this file in accordance with the terms of version
5*8ae05c10SToomas Soome  * 1.0 of the CDDL.
6*8ae05c10SToomas Soome  *
7*8ae05c10SToomas Soome  * A full copy of the text of the CDDL should have accompanied this
8*8ae05c10SToomas Soome  * source.  A copy of the CDDL is also available via the Internet at
9*8ae05c10SToomas Soome  * http://www.illumos.org/license/CDDL.
10*8ae05c10SToomas Soome  */
11*8ae05c10SToomas Soome 
12*8ae05c10SToomas Soome /*
13*8ae05c10SToomas Soome  * Copyright 2016 Toomas Soome <tsoome@me.com>
14*8ae05c10SToomas Soome  */
15*8ae05c10SToomas Soome 
16*8ae05c10SToomas Soome #ifndef _SYS_LOFI_IMPL_H
17*8ae05c10SToomas Soome #define	_SYS_LOFI_IMPL_H
18*8ae05c10SToomas Soome 
19*8ae05c10SToomas Soome /*
20*8ae05c10SToomas Soome  * lofi private implementation details.
21*8ae05c10SToomas Soome  */
22*8ae05c10SToomas Soome 
23*8ae05c10SToomas Soome #include <sys/nvpair.h>
24*8ae05c10SToomas Soome 
25*8ae05c10SToomas Soome #ifdef __cplusplus
26*8ae05c10SToomas Soome extern "C" {
27*8ae05c10SToomas Soome #endif
28*8ae05c10SToomas Soome 
29*8ae05c10SToomas Soome /* Structure for custom data, maintained as nvlist. */
30*8ae05c10SToomas Soome typedef struct lofi_nvl {
31*8ae05c10SToomas Soome 	kmutex_t	ln_lock;
32*8ae05c10SToomas Soome 	kcondvar_t	ln_cv;
33*8ae05c10SToomas Soome 	nvlist_t	*ln_data;
34*8ae05c10SToomas Soome } lofi_nvl_t;
35*8ae05c10SToomas Soome 
36*8ae05c10SToomas Soome extern lofi_nvl_t lofi_devlink_cache;
37*8ae05c10SToomas Soome #ifdef __cplusplus
38*8ae05c10SToomas Soome }
39*8ae05c10SToomas Soome #endif
40*8ae05c10SToomas Soome 
41*8ae05c10SToomas Soome #endif /* _SYS_LOFI_IMPL_H */
42