Re: [PATCH RFC 02/18] rust: drm: Add Device and Driver abstractions

2023-04-05 Thread Daniel Vetter
On Tue, Mar 07, 2023 at 11:25:27PM +0900, Asahi Lina wrote: > Add the initial abstractions for DRM drivers and devices. These go > together in one commit since they are fairly tightly coupled types. > > A few things have been stubbed out, to be implemented as further bits of > the DRM subsystem

Re: [PATCH RFC 02/18] rust: drm: Add Device and Driver abstractions

2023-03-10 Thread Boqun Feng
On Tue, Mar 07, 2023 at 11:25:27PM +0900, Asahi Lina wrote: > Add the initial abstractions for DRM drivers and devices. These go > together in one commit since they are fairly tightly coupled types. > > A few things have been stubbed out, to be implemented as further bits of > the DRM subsystem

Re: [PATCH RFC 02/18] rust: drm: Add Device and Driver abstractions

2023-03-10 Thread Boqun Feng
On Tue, Mar 07, 2023 at 11:25:27PM +0900, Asahi Lina wrote: [...] > + > +// SAFETY: `Device` only holds a pointer to a C device, which is safe to be > used from any thread. > +unsafe impl Send for Device {} > + > +// SAFETY: `Device` only holds a pointer to a C device, references to which > are

Re: [PATCH RFC 02/18] rust: drm: Add Device and Driver abstractions

2023-03-08 Thread Asahi Lina
On 08/03/2023 03.19, Björn Roy Baron wrote: > --- Original Message --- > On Tuesday, March 7th, 2023 at 15:25, Asahi Lina wrote: > >> Add the initial abstractions for DRM drivers and devices. These go >> together in one commit since they are fairly tightly coupled types. >> >> A few

Re: [PATCH RFC 02/18] rust: drm: Add Device and Driver abstractions

2023-03-08 Thread Björn Roy Baron
--- Original Message --- On Tuesday, March 7th, 2023 at 15:25, Asahi Lina wrote: > Add the initial abstractions for DRM drivers and devices. These go > together in one commit since they are fairly tightly coupled types. > > A few things have been stubbed out, to be implemented as

[PATCH RFC 02/18] rust: drm: Add Device and Driver abstractions

2023-03-07 Thread Asahi Lina
Add the initial abstractions for DRM drivers and devices. These go together in one commit since they are fairly tightly coupled types. A few things have been stubbed out, to be implemented as further bits of the DRM subsystem are introduced. Signed-off-by: Asahi Lina ---