Re: [RFC PATCH] drm: panthor: add dev_coredumpv support

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

 




> On 12 Jul 2024, at 11:53, Danilo Krummrich <dakr@xxxxxxxxxx> wrote:
> 
> You could also just define those structures in a C header directly and use it
> from Rust, can't you?
> 


Sure, I am open to any approach here. Although this looks a bit reversed to me.

i.e.: why should I declare these structs in a separate language and file, and then use them in Rust through bindgen? Sounds clunky.

Right now, they are declared right next to where they are used in the code, i.e.: in the same Rust file. And so long as they’re #[repr(C)] we know that an equivalent C version can generated by cbindgen.






[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux