Conversation
- Recommended CONFIG options for module development (KASAN, LOCKDEP, DEBUG_ATOMIC_SLEEP, DYNAMIC_DEBUG, DEBUG_INFO, MODULE_FORCE_UNLOAD). - printk rate limiting (pr_*_ratelimited, CONFIG_LOG_BUF_SHIFT) and dynamic debug (pr_debug + dyndbg runtime control). - Expanded vermagic explanation: what the string encodes, how CONFIG_MODVERSIONS CRC checksums reject ABI-incompatible modules. - Canonical goto-based init error-handling pattern with reverse-order cleanup. - IS_ERR/PTR_ERR/ERR_PTR convention, distinguishing ERR_PTR-returning APIs (class_create) from NULL-returning ones (kmalloc, proc_create). - Module-loading race warning: register last, unregister first. - Execution context overview: three kernel entry mechanisms, the "current" macro, and a process/softirq/hardirq capability table. - Spinlock variant decision table and same-CPU deadlock scenario, with threaded-IRQ caveat. - open/release/flush semantics and private_data lifecycle. - sysfs /sys layout overview (devices, bus, class, module, kernel, firmware, power) before the coding example. - copy_from_user exception-table mechanism and SMAP/PAN hardware enforcement explaining why raw user-pointer dereference crashes. - Four new Common Pitfalls subsections: kernel stack limits, no floating point, buffer pre-initialization for copy_to_user, and double-underscore function conventions. Makefile: fix blank-line rendering in HTML code blocks. make4ht emits <span class='ecrm-0500'>N\n</span> for blank source lines; the newline trapped inside the display:inline-block span collapses to zero height. Move the newline outside the span so <pre> renders it as a visible line break. Tested against 1038 affected lines in the deployed HTML; zero remain after the fix.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makefile: fix blank-line rendering in HTML code blocks. make4ht emits N\n for blank source lines; the newline trapped inside the display:inline-block span collapses to zero height. Move the newline outside the span so
New Features
CONFIG_MODVERSIONS, goto-based cleanup,ERR_PTR/IS_ERRpatterns, register-last/unregister-first.currentmeaning, spinlock variant guidance with same-CPU deadlock note, fileopen/release/flushandprivate_data.copy_from_user+ SMAP/PAN, pitfalls (small stack, no FP, zero buffers beforecopy_to_user, double-underscore APIs).Bug Fixes
make4htby relocating trapped newlines so<pre>shows them.Written for commit 1d15f7100b82a13d18dee7f92f1ad0f5aa11def3. Summary will update on new commits.