Whamcloud - gitweb
- cleanups in cmobd and others:
[fs/lustre-release.git] / lustre / include / linux / lustre_mgmt.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  * Copyright (C) 2001  Cluster File Systems, Inc.
5  *
6  * This code is issued under the GNU General Public License.
7  * See the file COPYING in this distribution
8  */
9
10 #ifndef LUSTRE_MGMT_H
11 #define LUSTRE_MGMT_H
12
13 #define OBD_MGMTCLI_DEVICENAME "mgmt_cli"
14
15 /* For the convenience and type-safety of inter_module_getters. */
16
17 struct obd_device;
18 struct obd_uuid;
19
20 /*
21  * The caller is responsible for ensuring that relevant_uuid -- if non-NULL --
22  * points to valid memory until deregister is called.  If relevant_uuid is NULL,
23  * all management events will be propagated to the registrant.  Notice that
24  * deregister doesn't take a relevant_uuid-matching parameter; I should probably
25  * fix that at some point.
26  */
27 typedef int (*mgmtcli_register_for_events_t)(struct obd_device *mgmt_obd,
28                                              struct obd_device *notify_obd,
29                                              struct obd_uuid *relevant_uuid);
30
31 typedef int (*mgmtcli_deregister_for_events_t)(struct obd_device *mgmt_obd,
32                                                struct obd_device *notify_obd);
33
34 #endif /* LUSTRE_MGMT_H */