Unofficial Hacker News companion — get notified on comment replies, and more.

Nvdriver is a clean-room, open-source Rust Linux kernel driver for Nvidia GPUs (opens external site)

941 points by rreyes1979 2 days ago | github.com | 465 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (2)

  1. I was specifically thinking about register access. That you can make safe if you provide a way to describe what the hardware needs.

    Something like this: https://en.wikibooks.org/wiki/Ada_Programming/Representation...

    Replies (1)
    1. You cannot make it safe. The data representation part is already mostly covered by packed!, enum and ranged_integers. But that doesn't make register access safe.

      Any time you touch hardware, all guarantees Rust makes disappear. And anything you place in mapped io can change when you don't expect it.