query regarding usb-hotplug

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>
Date: Monday, September 3, 2007 - 7:57 am

hi all,

 iam having one doubt about the usb driver application. i written one
small application  (u can see this file usbthread.c
in attachment , cc -o usbthread usbthread.c -lpthread -lusb (for
compilation) ) on usb device drivers using LIBUSB-0.1.12
in user space. my project leader has given one task about the usb
device drivers in user space. so using lib usb library and
written application in user space. we are getting out put as device
properties in userspace. but we are using polling
mechanism ( declaring one thread and calling one usb function as
subroutine in thread, this thread calling usb function
 continuously and it  has put in  infinity loop). but my task have to
develop  this same application with out using poling.

i heared an event mechanism for with out polling. but i dont know how
to develop event mechanism.

plz give me any idea to develop the hot plugging system by using event
mechanism...

i hope to get reply as soon as possible .

thanks and regards,
Raman.A
09916485129
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
query regarding usb-hotplug, Renuka Pampana, (Mon Sep 3, 7:57 am)
Re: query regarding usb-hotplug, Greg KH, (Wed Sep 5, 2:17 am)