|
|
Subscribe / Log in / New account

Pinning continues to be the most difficult aspect of Rust to understand

Pinning continues to be the most difficult aspect of Rust to understand

Posted Jul 21, 2025 18:36 UTC (Mon) by daroc (editor, #160859)
In reply to: Pinning continues to be the most difficult aspect of Rust to understand by NYKevin
Parent article: How to write Rust in the kernel: part 3

I think that ideally someone writing safe Rust drivers using already existing bindings would not need to really care about how Pin is implemented; they could play type Tetris and just have everything work.

But I also think that since Pin and its motivation are noticeably different from how C does things, and since kernel developers frequently care about low-level details of memory layout and access, it's worth having in one's mental model.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds