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)
Mon, Mar 25, 10:38 PM
Unknown Object (File)
Mar 2 2024, 4:44 PM
Unknown Object (File)
Feb 13 2024, 2:22 PM
Unknown Object (File)
Feb 9 2024, 12:15 AM
Unknown Object (File)
Feb 7 2024, 1:32 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