21 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
22 #include <linux/module.h>
24 #include <linux/netfilter/x_tables.h>
25 #include <linux/slab.h>
64 timer_pending(&ledinternal->
timer))
70 if (ledinfo->
delay > 0) {
75 }
else if (ledinfo->
delay == 0) {
84 static void led_timeout_callback(
unsigned long data)
109 if (ledinfo->
id[0] ==
'\0') {
110 pr_info(
"No 'id' parameter given.\n");
116 ledinternal = led_trigger_lookup(ledinfo->
id);
125 goto exit_mutex_only;
129 goto exit_internal_alloc;
136 pr_warning(
"led_trigger_register() failed\n");
138 pr_warning(
"Trigger name is already in use.\n");
143 if (ledinfo->
delay > 0)
145 (
unsigned long)ledinternal);
152 ledinfo->internal_data = ledinternal;
175 if (--ledinternal->
refcnt) {
182 if (ledinfo->
delay > 0)
199 .checkentry = led_tg_check,
200 .destroy = led_tg_destroy,
204 static int __init led_tg_init(
void)
209 static void __exit led_tg_exit(
void)