Re: [PATCH 0/8] Convert USB over to the runtime PM framework

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Mittwoch, 10. Februar 2010 20:59:05 schrieb Alan Cox:
> > Are you suggesting that the kernel should include its own polling code 
> > to detect media changes on devices that don't report them?
> 
> I think that might be best. It would give a coherent API and it only
> needs to be polling while a user task is requesting notification.

I think the kernel knows less than user space about the need to poll
a device. It is far easier to build, for example, a whitelist of dongles
that cannot physically change their medium in user space.

Why would you want to put the execution of polling into the kernel
while the user space code can perform the exact equivalent and is easier
to adapt, for example to a system of exponential backoffs in the
polling frequency or lowering the frequency when the screensaver
becomes active or the lid is closed or whatever user space may come
up with?

	Regards
		Oliver
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux