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

kernel: devctl_notify hook becomes a list, so an in-kernel bridge can consume ACPI events while /dev/devctl stays unopened

Aperta
#240 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
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c

Direzione di ricerca

Start with kern_devctl.c (especially the hook definitions and devctl_notify) and sys/bus.h; trace how the current single hook is registered and called. The issue proposes a short hook list and an ACPI-filtering bridge, but does not identify tests or a test command. Done means two in-kernel consumers receive the same ACPI event while /dev/devctl remains unopened on a booted system.

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

Descrizione

area:power enhancement

Summary

Every ACPI event goes acpi_UserNotify() -> devctl_notify("ACPI", <subsystem>, ...) (acpi.c ~4307-4324; subsystems Lid, Button, ACAD, CMBAT, Thermal, Suspend, Resume). devctl_notify feeds /dev/devctl and a single devctl_notify_hook slot (kern_devctl.c ~140-141, 601-609).

On NextBSD nothing consumes either: devd was removed, and the multi-reader netlink route (nlsysevent) is module-only -- netlink_sysevent.c is not in sys/conf/files, and NextBSD ships no modules.

Design

  • turn the hook into a short list (~30 LOC in kern_devctl.c, sys/bus.h); the bridge (K4) registers a filter for system == "ACPI"
  • /dev/devctl stays unopened and inert, keeping nextbsd#225's direction intact: IOKit-shaped notifications, not a second event bus

Acceptance

  • two in-kernel hook consumers both receive the same ACPI event
  • /dev/devctl remains closed on a booted system

Links: nextbsd#225 (E6).


K3 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#k3

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.