* Intended folder structure for subsystem bindings
@ 2024-01-18 9:20 Philipp Stanner
2024-01-18 9:32 ` Miguel Ojeda
2024-01-31 21:34 ` Trevor Gross
0 siblings, 2 replies; 3+ messages in thread
From: Philipp Stanner @ 2024-01-18 9:20 UTC (permalink / raw)
To: rust-for-linux; +Cc: dakr
Hi,
I'm having a look into potentially creating bindings for the PCI
subsystem.
I was wondering what the Rust infrastructure people had in mind here.
Should there be one folder per subsystem in rust/bindings?
Thanks,
P.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Intended folder structure for subsystem bindings
2024-01-18 9:20 Intended folder structure for subsystem bindings Philipp Stanner
@ 2024-01-18 9:32 ` Miguel Ojeda
2024-01-31 21:34 ` Trevor Gross
1 sibling, 0 replies; 3+ messages in thread
From: Miguel Ojeda @ 2024-01-18 9:32 UTC (permalink / raw)
To: Philipp Stanner; +Cc: rust-for-linux, dakr
On Thu, Jan 18, 2024 at 10:26 AM Philipp Stanner <pstanner@redhat.com> wrote:
>
> I'm having a look into potentially creating bindings for the PCI
> subsystem.
>
> I was wondering what the Rust infrastructure people had in mind here.
> Should there be one folder per subsystem in rust/bindings?
Currently, abstractions go into the `kernel` crate at `rust/kernel`.
You would typically create a Rust module in that crate (which may be a
file or a folder).
In the future, we will have the ability to have Rust code in their
usual folders among the C code.
`rust/bindings` only holds the header list, the generated bits plus a
bit of glue.
Cheers,
Miguel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Intended folder structure for subsystem bindings
2024-01-18 9:20 Intended folder structure for subsystem bindings Philipp Stanner
2024-01-18 9:32 ` Miguel Ojeda
@ 2024-01-31 21:34 ` Trevor Gross
1 sibling, 0 replies; 3+ messages in thread
From: Trevor Gross @ 2024-01-31 21:34 UTC (permalink / raw)
To: Philipp Stanner, FUJITA Tomonori, Andreas Hindborg; +Cc: rust-for-linux, dakr
On Thu, Jan 18, 2024 at 4:20 AM Philipp Stanner <pstanner@redhat.com> wrote:
>
> Hi,
>
> I'm having a look into potentially creating bindings for the PCI
> subsystem.
Not sure what exactly you are looking for but as a starting point,
Tomo has a basic abstraction at [1]. Based on the discussion at that
thread, it sounds like Andreas might be using it for the NVMe driver.
Do you have any specific project in mind? We can probably point you in
the right direction if you need any other abstractions.
- Trevor
[1]: https://github.com/Rust-for-Linux/linux/pull/856
> I was wondering what the Rust infrastructure people had in mind here.
> Should there be one folder per subsystem in rust/bindings?
>
> Thanks,
> P.
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-01-31 21:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-18 9:20 Intended folder structure for subsystem bindings Philipp Stanner
2024-01-18 9:32 ` Miguel Ojeda
2024-01-31 21:34 ` Trevor Gross
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).