]>
git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - drivers/staging/lustre/lustre/include/lustre_kernelcomm.h
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 only,
8 * as published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License version 2 for more details (a copy is included
14 * in the LICENSE file that accompanied this code).
16 * You should have received a copy of the GNU General Public License
17 * version 2 along with this program; If not, see
18 * http://www.gnu.org/licenses/gpl-2.0.html
23 * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
24 * Use is subject to license terms.
26 * Copyright (c) 2013 Intel Corporation.
29 * This file is part of Lustre, http://www.lustre.org/
31 * Author: Nathan Rutman <nathan.rutman@sun.com>
33 * Kernel <-> userspace communication routines.
34 * The definitions below are used in the kernel and userspace.
37 #ifndef __LUSTRE_KERNELCOMM_H__
38 #define __LUSTRE_KERNELCOMM_H__
40 /* For declarations shared with userspace */
41 #include "uapi_kernelcomm.h"
43 /* prototype for callback function on kuc groups */
44 typedef int (*libcfs_kkuc_cb_t
)(void *data
, void *cb_arg
);
47 int libcfs_kkuc_msg_put(struct file
*fp
, void *payload
);
48 int libcfs_kkuc_group_put(unsigned int group
, void *payload
);
49 int libcfs_kkuc_group_add(struct file
*fp
, int uid
, unsigned int group
,
50 void *data
, size_t data_len
);
51 int libcfs_kkuc_group_rem(int uid
, unsigned int group
);
52 int libcfs_kkuc_group_foreach(unsigned int group
, libcfs_kkuc_cb_t cb_func
,
55 #endif /* __LUSTRE_KERNELCOMM_H__ */