title: How can I get the pci address of a newly added NIC in C program without polling the kernel?
body: <p>As per below link, i understood that by creating netlink socket and listen to the RTMGRP_LINK we can detect events(network interface create/delete/up/down events). </p>
  
  <p><a href="https://stackoverflow.com/questions/7225888/how-can-i-monitor-the-nic-statusup-down-in-a-c-program-without-polling-the-ker">How can I monitor the NIC status(up/down) in a C program without polling the kernel?</a></p>
  
  <p>Is it possible to get the pci address of a newly added interface once it is detected?</p>