Page MenuHomeFreeBSD

LinuxKPI: dev_coredump implementation (NOT FOR COMMIT AS-IS)
Needs ReviewPublic

Authored by bz on Feb 3 2024, 1:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 29, 12:08 AM
Unknown Object (File)
Wed, Nov 26, 12:57 AM
Unknown Object (File)
Sun, Nov 23, 9:22 AM
Unknown Object (File)
Sat, Nov 15, 3:29 AM
Unknown Object (File)
Fri, Nov 7, 3:33 PM
Unknown Object (File)
Oct 24 2025, 7:00 PM
Unknown Object (File)
Oct 21 2025, 2:34 AM
Unknown Object (File)
Oct 21 2025, 2:34 AM
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Implement the ability (for the S/G case only for now as that is what
was needed for iwlwifi(4)) to write device driver core files, usually
dumping firmware state.

This is modelled after our core(5) code currently and has a hardcoded
directory prefix (/var/crash) and some other omissions.
See comment in the file for what we likely should do.

Any suggestions for improvements are welcome, especially if we really
can get rid of all this "magic" for opening a file from within the kernel.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 55773
Build 52662: arc lint + arc unit

Event Timeline

bz requested review of this revision.Feb 3 2024, 1:08 PM
sys/compat/linuxkpi/common/src/linux_devcorefile.c
220

git apply complained about extra EOF whitespace

Writing seems fairly straightforward but indeed would be nice to have centralized infrastructure for it.