]>
git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - spl/include/sys/user.h
1 /*****************************************************************************\
2 * Copyright (C) 2015 Cluster Inc.
3 * Produced at ClusterHQ Inc (cf, DISCLAIMER).
4 * Written by Richard Yao <richard.yao@clusterhq.com>.
6 * This file is part of the SPL, Solaris Porting Layer.
7 * For details, see <http://zfsonlinux.org/>.
9 * The SPL is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by the
11 * Free Software Foundation; either version 2 of the License, or (at your
12 * option) any later version.
14 * The SPL is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19 * You should have received a copy of the GNU General Public License along
20 * with the SPL. If not, see <http://www.gnu.org/licenses/>.
21 \*****************************************************************************/
27 * We have uf_info_t for areleasef(). We implement areleasef() using a global
28 * linked list of all open file descriptors with the task structs referenced,
29 * so accessing the correct descriptor from areleasef() only requires knowing
30 * about the Linux task_struct. Since this is internal to our compatibility
31 * layer, we make it an opaque type.
33 * XXX: If the descriptor changes under us, we would get an incorrect
38 typedef struct uf_info uf_info_t
;
40 #define P_FINFO(x) ((uf_info_t *)x)
42 #endif /* SPL_USER_H */