* Does Rust for Linux support kernel socket programming now?
@ 2022-04-09 15:58 Howard Lau
2022-04-11 9:08 ` Miguel Ojeda
0 siblings, 1 reply; 4+ messages in thread
From: Howard Lau @ 2022-04-09 15:58 UTC (permalink / raw)
To: rust-for-linux
Hi, I am quite interested in developing safe kernel modules with Rust for Linux, but it seems that the project hasn't added support for kernel mode socket programming yet (as I didn't find anything related to socket except for `SkBuff` in `kernel::net`).
I am working on a high-performance network file system and looking for a way to use API such as `sock_create_kern` and send and receive network messages in the kernel with Rust for Linux. Could anyone please tell me if I am missing something or there is a workaround for this?
Thanks!
P.S. I would also like to join the zulip group. My email address is howardlau1999@hotmail.com.
Cheers,
Howard.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Does Rust for Linux support kernel socket programming now?
2022-04-09 15:58 Does Rust for Linux support kernel socket programming now? Howard Lau
@ 2022-04-11 9:08 ` Miguel Ojeda
0 siblings, 0 replies; 4+ messages in thread
From: Miguel Ojeda @ 2022-04-11 9:08 UTC (permalink / raw)
To: Howard Lau; +Cc: rust-for-linux
Hi Howard,
On Mon, Apr 11, 2022 at 2:18 AM Howard Lau <howardlau1999@hotmail.com> wrote:
>
> Hi, I am quite interested in developing safe kernel modules with Rust for Linux, but it seems that the project hasn't added support for kernel mode socket programming yet (as I didn't find anything related to socket except for `SkBuff` in `kernel::net`).
> I am working on a high-performance network file system and looking for a way to use API such as `sock_create_kern` and send and receive network messages in the kernel with Rust for Linux. Could anyone please tell me if I am missing something or there is a workaround for this?
For missing kernel APIs, safe abstractions should be added and then
used from the module. If you want to experiment, then a workaround is
calling the C functions directly through the bindings for the moment.
> Thanks!
> P.S. I would also like to join the zulip group. My email address is howardlau1999@hotmail.com.
Invitation sent, welcome!
Cheers,
Miguel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Does Rust for Linux support kernel socket programming now?
2022-04-09 16:12 Howard Lau
@ 2022-04-11 12:57 ` Miguel Ojeda
0 siblings, 0 replies; 4+ messages in thread
From: Miguel Ojeda @ 2022-04-11 12:57 UTC (permalink / raw)
To: Howard Lau; +Cc: rust-for-linux
On Mon, Apr 11, 2022 at 2:36 PM Howard Lau <howardlau1999@hotmail.com> wrote:
>
> That's awesome! Please let me know when you have published your work.
>
> By the way, by saying 'using async', do you mean that you have also written a runtime like `tokio`?
I think you may have intended to send this message to another thread?
Cheers,
Miguel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Does Rust for Linux support kernel socket programming now?
@ 2022-04-09 16:12 Howard Lau
2022-04-11 12:57 ` Miguel Ojeda
0 siblings, 1 reply; 4+ messages in thread
From: Howard Lau @ 2022-04-09 16:12 UTC (permalink / raw)
To: rust-for-linux
That's awesome! Please let me know when you have published your work.
By the way, by saying 'using async', do you mean that you have also written a runtime like `tokio`?
Howard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-04-11 12:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-09 15:58 Does Rust for Linux support kernel socket programming now? Howard Lau
2022-04-11 9:08 ` Miguel Ojeda
2022-04-09 16:12 Howard Lau
2022-04-11 12:57 ` Miguel Ojeda
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.