Add missing policy includes, add missing sun ddi bits
This commit is contained in:
parent
70997fb4b1
commit
d83ba26e18
|
@ -1,4 +1,10 @@
|
||||||
#ifndef _SPL_POLICY_H
|
#ifndef _SPL_POLICY_H
|
||||||
#define _SPL_POLICY_H
|
#define _SPL_POLICY_H
|
||||||
|
|
||||||
|
#define secpolicy_fs_unmount(c,vfs) (0)
|
||||||
|
#define secpolicy_nfs(c) (0)
|
||||||
|
#define secpolicy_sys_config(c,co) (0)
|
||||||
|
#define secpolicy_zfs(c) (0)
|
||||||
|
#define secpolicy_zinject(c) (0)
|
||||||
|
|
||||||
#endif /* SPL_POLICY_H */
|
#endif /* SPL_POLICY_H */
|
||||||
|
|
|
@ -136,6 +136,7 @@ typedef struct dev_ops {
|
||||||
struct cb_ops *devo_cb_ops;
|
struct cb_ops *devo_cb_ops;
|
||||||
struct bus_ops *devo_bus_ops;
|
struct bus_ops *devo_bus_ops;
|
||||||
int (*devo_power)(dev_info_t *dip, int component, int level);
|
int (*devo_power)(dev_info_t *dip, int component, int level);
|
||||||
|
int (*devo_quiesce)(dev_info_t *dip);
|
||||||
} dev_ops_t;
|
} dev_ops_t;
|
||||||
|
|
||||||
typedef struct mod_ops {
|
typedef struct mod_ops {
|
||||||
|
@ -198,6 +199,7 @@ extern int __ddi_create_minor_node(dev_info_t *dip, char *name, int spec_type,
|
||||||
minor_t minor_num, char *node_type,
|
minor_t minor_num, char *node_type,
|
||||||
int flags, struct module *mod);
|
int flags, struct module *mod);
|
||||||
extern void __ddi_remove_minor_node(dev_info_t *dip, char *name);
|
extern void __ddi_remove_minor_node(dev_info_t *dip, char *name);
|
||||||
|
extern int ddi_quiesce_not_needed(dev_info_t *dip);
|
||||||
extern int __mod_install(struct modlinkage *modlp);
|
extern int __mod_install(struct modlinkage *modlp);
|
||||||
extern int __mod_remove(struct modlinkage *modlp);
|
extern int __mod_remove(struct modlinkage *modlp);
|
||||||
|
|
||||||
|
|
|
@ -188,6 +188,12 @@ __ddi_remove_minor_node(dev_info_t *di, char *name)
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(__ddi_remove_minor_node);
|
EXPORT_SYMBOL(__ddi_remove_minor_node);
|
||||||
|
|
||||||
|
int
|
||||||
|
ddi_quiesce_not_needed(dev_info_t *dip)
|
||||||
|
{
|
||||||
|
RETURN(DDI_SUCCESS);
|
||||||
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
static int
|
static int
|
||||||
mod_generic_open(struct inode *, struct file *)
|
mod_generic_open(struct inode *, struct file *)
|
||||||
|
|
Loading…
Reference in New Issue