xref: /freebsd/sys/contrib/openzfs/lib/libspl/include/sys/sid.h (revision 22649d4dba730d46244fd2dff4fd174903c8379f)
1 // SPDX-License-Identifier: CDDL-1.0
2 /*
3  * This file and its contents are supplied under the terms of the
4  * Common Development and Distribution License ("CDDL"), version 1.0.
5  * You may only use this file in accordance with the terms of version
6  * 1.0 of the CDDL.
7  *
8  * A full copy of the text of the CDDL should have accompanied this
9  * source.  A copy of the CDDL is also available via the Internet at
10  * https://opensource.org/license/CDDL-1.0.
11  */
12 /*
13  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
14  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
15  * Copyright (c) 2012, 2018 by Delphix. All rights reserved.
16  * Copyright (c) 2012, Joyent, Inc. All rights reserved.
17  */
18 
19 #ifndef _SYS_SID_H
20 #define	_SYS_SID_H
21 
22 #include <sys/types.h>
23 
24 /* SID stuff */
25 typedef struct ksiddomain {
26 	uint_t	kd_ref;
27 	uint_t	kd_len;
28 	char	*kd_name;
29 } ksiddomain_t;
30 
31 ksiddomain_t *ksid_lookupdomain(const char *);
32 void ksiddomain_rele(ksiddomain_t *);
33 
34 #endif
35