53 ipgpc_create_action, /* ippo_action_create */
54 ipgpc_modify_action, /* ippo_action_modify */
55 ipgpc_destroy_action, /* ippo_action_destroy */
56 ipgpc_info, /* ippo_action_info */
57 ipgpc_invoke_action /* ippo_action_invoke */
58 };
59
60 extern struct mod_ops mod_ippops;
61
62 /*
63 * Module linkage information for the kernel.
64 */
65 static struct modlipp modlipp = {
66 &mod_ippops,
67 "IP Generic Packet Classifier (ipgpc) module 1.0",
68 &ipgpc_ops
69 };
70
71 static struct modlinkage modlinkage = {
72 MODREV_1,
73 (void *)&modlipp,
74 NULL
75 };
76
77 #define __FN__ "_init"
78 int
79 _init(
80 void)
81 {
82 int rc;
83
84 if (ipgpc_action_exist) {
85 return (EBUSY);
86 }
87 /* init mutexes */
88 mutex_init(&ipgpc_config_lock, NULL, MUTEX_DRIVER, NULL);
89 mutex_init(&ipgpc_fid_list_lock, NULL, MUTEX_DRIVER, NULL);
90 mutex_init(&ipgpc_cid_list_lock, NULL, MUTEX_DRIVER, NULL);
91 mutex_init(&ipgpc_table_list_lock, NULL, MUTEX_DRIVER, NULL);
92 mutex_init(&ipgpc_ds_table_id.lock, NULL, MUTEX_DRIVER, NULL);
93
94 if ((rc = mod_install(&modlinkage)) != 0) {
|
53 ipgpc_create_action, /* ippo_action_create */
54 ipgpc_modify_action, /* ippo_action_modify */
55 ipgpc_destroy_action, /* ippo_action_destroy */
56 ipgpc_info, /* ippo_action_info */
57 ipgpc_invoke_action /* ippo_action_invoke */
58 };
59
60 extern struct mod_ops mod_ippops;
61
62 /*
63 * Module linkage information for the kernel.
64 */
65 static struct modlipp modlipp = {
66 &mod_ippops,
67 "IP Generic Packet Classifier (ipgpc) module 1.0",
68 &ipgpc_ops
69 };
70
71 static struct modlinkage modlinkage = {
72 MODREV_1,
73 { (void *)&modlipp, NULL }
74 };
75
76 #define __FN__ "_init"
77 int
78 _init(
79 void)
80 {
81 int rc;
82
83 if (ipgpc_action_exist) {
84 return (EBUSY);
85 }
86 /* init mutexes */
87 mutex_init(&ipgpc_config_lock, NULL, MUTEX_DRIVER, NULL);
88 mutex_init(&ipgpc_fid_list_lock, NULL, MUTEX_DRIVER, NULL);
89 mutex_init(&ipgpc_cid_list_lock, NULL, MUTEX_DRIVER, NULL);
90 mutex_init(&ipgpc_table_list_lock, NULL, MUTEX_DRIVER, NULL);
91 mutex_init(&ipgpc_ds_table_id.lock, NULL, MUTEX_DRIVER, NULL);
92
93 if ((rc = mod_install(&modlinkage)) != 0) {
|