All of lore.kernel.org
 help / color / mirror / Atom feed
* usbmon structures headers?
@ 2020-07-04 21:43 Diego Elio Pettenò
  2020-07-04 21:46 ` Diego Elio Pettenò
  0 siblings, 1 reply; 4+ messages in thread
From: Diego Elio Pettenò @ 2020-07-04 21:43 UTC (permalink / raw)
  To: Pete Zaitcev, Paolo Abeni, Kris Katterjohn; +Cc: linux-usb

Hi folks,

I'm trying to write a quick implementation of usbmon capture in Cython, for an Apache-2.0 licensed project[1].

As I followed the documentation[2], I realised that the definition of ioctl constants and structures for usbmon are not exposed in headers at all, only in the sources[3]. This makes it… a bit of a problem, because I'm not sure if mimicking the structures in Cython falls into the syscall exception at that point.

Interesting enough, libpcap appears to define the same values, but apply an MIT license to them[4], so I could copy them from there, but I thought I would at least check first, if this should be exposed in the first place.

Please advise!

[1]: https://github.com/Flameeyes/usbmon-tools
[2]: https://www.kernel.org/doc/Documentation/usb/usbmon.txt
[3]: https://github.com/torvalds/linux/blob/master/drivers/usb/mon/mon_bin.c
[4]: https://github.com/the-tcpdump-group/libpcap/blob/master/pcap-usb-linux.c

-- 
Flameeyes

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-07-05 14:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-04 21:43 usbmon structures headers? Diego Elio Pettenò
2020-07-04 21:46 ` Diego Elio Pettenò
2020-07-05 14:24   ` Greg KH
2020-07-05 14:28     ` Diego Elio Pettenò

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.