Safety requirements of `Port::read` and `Port::write`
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- embedded-iot
Direzione di ricerca
Start by reading the safety documentation for Port::read and Port::write and the Port implementation in the x86_64 crate; the issue does not name specific files or tests. Identify the safety preconditions, including whether multiple ports with the same ID are valid, and document them. Done means the unsafe methods’ docs give an exhaustive, actionable account of their safety requirements.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Context: I'm working on a Rust os dev course based on https://os.phil-opp.com (which is a great educational resource, thank you!) and I want to restrict students from writing unsafe code. I want to provide all necessary unsafe code in my template and have a safe wrapper around them so that students can use it.
For writing a safe wrapper around Port, I need to know the safety requirements of its unsafe methods. I can think of trivial ones like creating a Port with invalid port id, but it is unclear to me e.g. whether creating two port with same id will lead to UB or not. So an exhaustive list of safety precondition for those functions is much appreciated. Current docs "This function is unsafe because the I/O port could have side effects that violate memory safety." is not really helpful. Thanks!
- Lingua principale
- Rust
- Stelle
- 946
- Fork
- 161
- Merge medio
- 1g 21h
- PR unite (30g)
- 2
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di rust-osdev/x86_64
-
`PageTableEntry::addr` needs a `is_level_1_entry` argForse già presa @phil-opp l’ha presa 19 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
rust-osdev/x86_64#613 ·
-
`PageTableFlags::PAT_HUGE_PAGE` overlaps with address fieldForse già presa @phil-opp l’ha presa 19 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
rust-osdev/x86_64#612 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
rust-osdev/x86_64#610 · 1 commento ·
-
New major release?Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
rust-osdev/x86_64#600 · 16 commenti · 1 reazione ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
rust-osdev/x86_64#587 · 1 commento ·
Tutte le issue di rust-osdev/x86_64
Issue simili
-
claim
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Nixitov/Riptide-Native#946 ·
I maintainer di solito rispondono entro 1 giorno
-
area: ai-assistants documentation help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
BetaBots-LLC/latticegate#17 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 94/100
storytold/craft-libs#5594 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
听歌识曲历史跳转后对应音源界面无法返回Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
LingyunStudio/RustMusic#16 ·