Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6601907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:48:49+00:00 2026-05-25T18:48:49+00:00

I read some questions here but couldn’t really find the specific problem I’am faced

  • 0

I read some questions here but couldn’t really find the specific problem I’am faced with here…

I need to implement a “DeviceCache” in a particular project which caches all device-names found in /proc/net/dev .
The Language is C/++

So I thought about a seperate thread looking every X seconds in the directory mentioned above but was encouraged to find a more direct way.
How can I register a method of my process to the device manager of linux?
Is there a similar way like events/signals?

I looked in other sites but couldn’t find any helpful code… Im relatively new to Linux-programming but willing to learn new things 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:48:49+00:00Added an answer on May 25, 2026 at 6:48 pm

    Based on your comments, what you really want is to track which network interfaces are operational at any given time.

    The only true way to determine if a network interface is up is to test it – after all, the router on the other end may be down. You could send pings out periodically, for example.

    However, if you just want to know if the media goes down (ie, the network cable is unplugged), take a look at these SO questions:

    • Linux carrier detection notification
    • Get notified about network interface change on Linux

    If you just want to be notified of the actual hardware-level registration of interfaces (eg, when a USB NIC is plugged in), you can use udev events if your platform has udev; otherwise, I believe there’s another netlink category for hardware addition/removal events.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I read the forums and some posts here but still couldn't figure this out:
I read some source code of ZenTest but didn't find where it is implemented.
Follow up to This I have also read up on some other questions but
I've read through some of the other questions here on SO and haven't quite
I've just read some related questions that came up when I typed the subject,
I read some of the answers on here re: testing views and controllers, and
I read some tutorials concerning Makefiles but for me it is still unclear for
I read some microsoft articles.They explained that WCF uses DataContractSerializer for serialization.But the articles
I've read a number of SO questions on this topic, but grokking the applied
I searched SO for a pertinent question existing already but couldn't find one. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.