Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

kernel: IORegistry property-provider hook, so a driver can add keys to its own node

Aperta
#241 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c

Direzione di ricerca

Start with iokit_registry.c, especially ioreg_build_bag around lines 260–297, and trace how its fixed newbus fields are added. Then examine the existing interest-notification path referenced as K6 and how ioreg -l and IORegistryEntryCreateCFProperty expose properties. Done means a test provider’s keys appear through both interfaces; this is kernel-level work with notification behavior to understand.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:power enhancement

Summary

Registry property bags are synthesized from fixed newbus fields only -- id, parent, state, name, class, driver, path, PCI ids, description (iokit_registry.c ioreg_build_bag, ~260-297). There is no per-driver provider, so nothing can publish AppleClamshellState or CurrentCapacity.

Design

ioreg_register_prop_provider(device_t, int (*)(device_t, nvlist_t *)), consulted by ioreg_build_bag (~40 LOC). A provider change emits a property-change interest notification (K6).

Acceptance

  • a test provider's keys appear in ioreg -l and through IORegistryEntryCreateCFProperty

K5 in epic nextbsd/nextbsd#490 (E17 Power management). Depends on: none.

Plan: https://pkgdemon.github.io/nextbsd-power-management-plan.html · Draft: https://pkgdemon.github.io/nextbsd-e17-tickets.html#k5

Lingua principale
C
Stelle
12
Fork
3
Merge medio
7h 1m
PR unite (30g)
7

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nextbsd/nextbsd-kernel

Tutte le issue di nextbsd/nextbsd-kernel

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.