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.
8 * The SPL is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2 of the License, or (at your
11 * option) any later version.
13 * The SPL is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 * You should have received a copy of the GNU General Public License along
19 * with the SPL. If not, see <http://www.gnu.org/licenses/>.
26 * We have uf_info_t for areleasef(). We implement areleasef() using a global
27 * linked list of all open file descriptors with the task structs referenced,
28 * so accessing the correct descriptor from areleasef() only requires knowing
29 * about the Linux task_struct. Since this is internal to our compatibility
30 * layer, we make it an opaque type.
32 * XXX: If the descriptor changes under us and we do not do a getf() between
33 * the change and using it, we would get an incorrect reference.
37 typedef struct uf_info uf_info_t
;
39 #define P_FINFO(x) ((uf_info_t *)x)
41 #endif /* SPL_USER_H */