Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bonzini
5 days ago
|
parent
|
context
|
favorite
| on:
Rust in the kernel is no longer experimental
You can absolutely write
drivers
with zero unsafe Rust. The bridge from Rust to C is where unsafe code lies.
weebull
5 days ago
[–]
And hardware access. You absolutely can't write a hardware driver without unsafe.
reply
bonzini
5 days ago
|
parent
[–]
There are devices that do not have access to memory, and you can write a safe description of such a device's registers. The only thing that is inherently unsafe is building DMA descriptors.
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: