Please let me know the following regarding USB Modem plugin & plug out notification handler APIs or system calls in Linux :
In my application I have to write a function which will receive notifications in the following scenarios :
When a USB Modem is plugged in, I would like to receive a notification that a USB Modem is plugged in, any Linux system call or Linux kernel API is there to send these notifications, also along with notification if I receive additional information about that device, network speed, etc, that will be good
When a USB Modem is plugged out, I would like to receive a notification that a USB Modem is plugged out, any Linux system call or Linux kernel API is there to send these notifications, also along with notification if I receive additional information that will be good
Regards