Find the answer to your Linux question:
Results 1 to 4 of 4
Hi All, I want to write a C/C++ code where i can detect that any USB device is plugged in/ out of the system. Thnx Alot...
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Posts
    2

    USB Pluggin/out Detection in C/C++

    Hi All,
    I want to write a C/C++ code where i can detect that any USB device is plugged in/ out of the system.

    Thnx Alot

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Debian GNU/Linux -- You know you want it.

  3. #3
    Just Joined!
    Join Date
    Oct 2009
    Posts
    2
    Thnx GNU-FAN for quick reply can u please help me out in a simple code snipet form that will be very helpfull for me.

  4. #4
    Just Joined! probe's Avatar
    Join Date
    Oct 2009
    Location
    Belgrade, Serbia
    Posts
    29
    Here you can find some practical example of writing usb driver:

    Writing a Simple USB Driver

    But I recommend that you read LKDD 3rd edition. I think USB driver is
    kind of block driver, so you should read first before coding.

    ---------------------------------------------------------
    "Didn't you know, we are obsolete."

    card M.Sc. in Astrophysics; Programmer
    contact dragoslav.zaric.kd@gmail.com
    web-site www.tech-vibe.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...