Server IP : 172.67.216.182 / Your IP : 162.158.190.30 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/src/linux-headers-5.15.0-143/include/linux/can/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright 2012, Fabio Baltieri <[email protected]> */ #ifndef _CAN_LED_H #define _CAN_LED_H #include <linux/if.h> #include <linux/leds.h> #include <linux/netdevice.h> enum can_led_event { CAN_LED_EVENT_OPEN, CAN_LED_EVENT_STOP, CAN_LED_EVENT_TX, CAN_LED_EVENT_RX, }; #ifdef CONFIG_CAN_LEDS /* keep space for interface name + "-tx"/"-rx"/"-rxtx" * suffix and null terminator */ #define CAN_LED_NAME_SZ (IFNAMSIZ + 6) void can_led_event(struct net_device *netdev, enum can_led_event event); void devm_can_led_init(struct net_device *netdev); int __init can_led_notifier_init(void); void __exit can_led_notifier_exit(void); #else static inline void can_led_event(struct net_device *netdev, enum can_led_event event) { } static inline void devm_can_led_init(struct net_device *netdev) { } static inline int can_led_notifier_init(void) { return 0; } static inline void can_led_notifier_exit(void) { } #endif #endif /* !_CAN_LED_H */