Re: [systemd-devel] Scan all USB devices from Linux service

2024-02-15 Thread Andy Pieters
On Thu, 15 Feb 2024 at 13:12, Greg KH wrote: > On Thu, Feb 15, 2024 at 12:04:27PM +, Andy Pieters wrote: > > On Thu, 15 Feb 2024 at 09:12, Greg KH wrote: > > > > > > > > provenance matters HUGELY when it comes to code, as you need a license > > > and other things as well (copyright law is st

Re: [systemd-devel] Scan all USB devices from Linux service

2024-02-15 Thread Greg KH
On Thu, Feb 15, 2024 at 12:04:27PM +, Andy Pieters wrote: > On Thu, 15 Feb 2024 at 09:12, Greg KH wrote: > > > > > provenance matters HUGELY when it comes to code, as you need a license > > and other things as well (copyright law is strict.) "AI generated" code > > has none of that and as su

Re: [systemd-devel] Scan all USB devices from Linux service

2024-02-15 Thread Andy Pieters
On Thu, 15 Feb 2024 at 09:12, Greg KH wrote: > > provenance matters HUGELY when it comes to code, as you need a license > and other things as well (copyright law is strict.) "AI generated" code > has none of that and as such, can NOT be used for almost any use until > that is sorted out. > > Jus

Re: [systemd-devel] Scan all USB devices from Linux service

2024-02-15 Thread Greg KH
On Thu, Feb 15, 2024 at 08:45:41AM +, Andy Pieters wrote: > On Thu, 15 Feb 2024 at 08:32, Reto wrote: > > > On Wed, Feb 14, 2024 at 05:56:31PM +0100, Vadim Lebedev wrote: > > > This is what ChatGPT proposes: > > > > Can we like not... > > If people want to ask a generative AI they do so on th

Re: [systemd-devel] Scan all USB devices from Linux service

2024-02-15 Thread Andy Pieters
On Thu, 15 Feb 2024 at 08:32, Reto wrote: > On Wed, Feb 14, 2024 at 05:56:31PM +0100, Vadim Lebedev wrote: > > This is what ChatGPT proposes: > > Can we like not... > If people want to ask a generative AI they do so on their own. > > Let's keep responses based on human interaction shall we, rathe

Re: [systemd-devel] Scan all USB devices from Linux service

2024-02-15 Thread Reto
On Wed, Feb 14, 2024 at 05:56:31PM +0100, Vadim Lebedev wrote: > This is what ChatGPT proposes: Can we like not... If people want to ask a generative AI they do so on their own. Let's keep responses based on human interaction shall we, rather than parroting math models.

Re: [systemd-devel] Scan all USB devices from Linux service

2024-02-14 Thread Vadim Lebedev
This is what ChatGPT proposes: #include #include void scan_devices(const char* target_string) { libusb_device **devs; libusb_context *ctx = NULL; int r; ssize_t cnt; r = libusb_init(&ctx); if (r < 0) return; cnt = libusb_get_device_list(ctx, &devs); if (cnt < 0)

Re: [systemd-devel] Scan all USB devices from Linux service

2024-02-14 Thread Lennart Poettering
On Mi, 14.02.24 20:24, Muni Sekhar (munisekhar...@gmail.com) wrote: > HI all, > > USB devices can have multiple interfaces (functional units) that serve > different purposes (e.g., data transfer, control, audio, etc.). > > Each interface can have an associated string descriptor (referred to > as i

Re: [systemd-devel] Scan all USB devices from Linux service

2024-02-14 Thread Greg KH
On Wed, Feb 14, 2024 at 08:24:25PM +0530, Muni Sekhar wrote: > HI all, > > USB devices can have multiple interfaces (functional units) that serve > different purposes (e.g., data transfer, control, audio, etc.). > > Each interface can have an associated string descriptor (referred to > as iInterf

[systemd-devel] Scan all USB devices from Linux service

2024-02-14 Thread Muni Sekhar
HI all, USB devices can have multiple interfaces (functional units) that serve different purposes (e.g., data transfer, control, audio, etc.). Each interface can have an associated string descriptor (referred to as iInterface). The string descriptor provides a human-readable name or description f