Yes, open a netlink socket and listen to the RTMGRP_LINK (network interface create/delete/up/down events) multicast groups.
The netlink man page here has a specific example to do this.
More Related Contents:
- Increasing the maximum number of TCP/IP connections in Linux
- how to create docker overlay network between multi hosts?
- kernel stack and user space stack
- How to mmap a Linux kernel buffer to user space?
- Do Kernel pages get swapped out?
- Just black screen after running Qemu
- “zero copy networking” vs “kernel bypass”?
- Linux Stack Sizes
- init function invocation of drivers compiled into kernel
- create a file with prefix =file1 followed by the random number
- What happens to an open file handle on Linux if the pointed file gets moved or deleted
- Finding which process was killed by Linux OOM killer [closed]
- Use of floating point in the Linux kernel
- Using gdb to single-step assembly code outside specified executable causes error “cannot find bounds of current function”
- How to continuously monitor the directory using dnotify /inotify command
- Getting MongoDB on Linux to listen to remote connections
- How does Linux determine the next PID?
- How to add poll function to the kernel module code?
- ioctl vs netlink vs memmap to communicate between kernel space and user space
- What is the difference between a Linux platform driver and normal device driver?
- How to access(if possible) kernel space from user space?
- How to avoid transparent_hugepage/defrag warning from mongodb?
- Converting jiffies to milli seconds
- Direct Memory Access in Linux
- How to decode /proc/pid/pagemap entries in Linux?
- DNS caching in Linux [closed]
- How can you have a TCP connection back to the same port?
- How can I create a device node from the init_module code of a Linux kernel module?
- Maximum number of concurrent connections on a single port (socket) of Server
- Sending UDP packets from the Linux Kernel