Re: How best to get over-current notification to user application?

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

 



Am Mittwoch, 25. Mai 2011, 16:14:29 schrieb Arvid Brodin:
> So one solution would be to create a chain of pipes, running something like
> 'tail -f /var/log/messages | egrep "hub.*over-current change"' and read the
> output from this in the program. Is there a better way (some kind of sysfs
> interface for port power state, maybe)?

Eek. It seems to me that the cleanest solution would be to have
a charachter device per hub that allows such conditions to be polled
for.

	Regards
		Oliver
-- 
- - - 
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) 
Maxfeldstraße 5                         
90409 Nürnberg 
Germany 
- - - 
--
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