On 2/6/2026 4:30 PM, Daniel Almeida wrote: > > >> On 6 Feb 2026, at 14:27, Danilo Krummrich <[email protected]> wrote: >> >> On Fri Feb 6, 2026 at 6:20 PM CET, Gary Guo wrote: >>> I asked for this to be changed to `pub(crate)` because I think this isn't >>> something that should be used by drivers. >>> >>> As you said, tt might be tricky to enforce that with new build system when >>> subsystems are inside different crates. But until then I think it's better >>> to >>> limit visibility. >> >> It should *usually* not be used by drivers, but there are exceptions. For >> instance, it is perfectly valid to be used by Rust drivers that interact >> with C >> drivers. > > I agree with what Danilo said here. > > I don’t see a reason to forbid drivers from using this. If the reason is > the unsafe bits, then isn’t it the same pattern used by impl_has_work!() > anyways? i.e.: a macro that implements an unsafe trait so long as the driver > gives it the right Work field. Seems equivalent in spirit to the clist_create > macro > introduced by this patch. > Thank you for this suggestion. As I discussed on the other thread, I think the consensus is to change the module level to "pub" and all the items in it to "pub" as well. So I will do so. -- Joel Fernandes
- [PATCH -next v7 2/2] rust: gpu: Add GPU buddy allocator b... Joel Fernandes
- [PATCH -next v7 1/2] rust: clist: Add support to interfac... Joel Fernandes
- Re: [PATCH -next v7 1/2] rust: clist: Add support to... Gary Guo
- Re: [PATCH -next v7 1/2] rust: clist: Add suppor... Danilo Krummrich
- Re: [PATCH -next v7 1/2] rust: clist: Add su... Joel Fernandes
- Re: [PATCH -next v7 1/2] rust: clist: Ad... Gary Guo
- Re: [PATCH -next v7 1/2] rust: clis... Danilo Krummrich
- Re: [PATCH -next v7 1/2] rust: ... Gary Guo
- Re: [PATCH -next v7 1/2] rust: ... Danilo Krummrich
- Re: [PATCH -next v7 1/2] rust: ... Daniel Almeida
- Re: [PATCH -next v7 1/2] rust: ... Joel Fernandes
- Re: [PATCH -next v7 1/2] rust: ... Joel Fernandes
- Re: [PATCH -next v7 1/2] rust: clist: Add suppor... Joel Fernandes
- Re: [PATCH -next v7 1/2] rust: clist: Add support to... Daniel Almeida
- Re: [PATCH -next v7 1/2] rust: clist: Add suppor... Joel Fernandes
- Re: [PATCH -next v7 1/2] rust: clist: Add su... Gary Guo
- Re: [PATCH -next v7 1/2] rust: clist: Ad... Joel Fernandes
- Re: [PATCH -next v7 1/2] rust: clist: Add suppor... Joel Fernandes
- Re: [PATCH -next v7 1/2] rust: clist: Add su... Daniel Almeida
- Re: [PATCH -next v7 1/2] rust: clist: Ad... Joel Fernandes
- Re: [PATCH -next v7 1/2] rust: clis... Daniel Almeida
