Skip to content

Refactor multi file modules examples - #390

Open
RehanChalana wants to merge 1 commit into
sysprog21:masterfrom
RehanChalana:lkmpg_388
Open

RehanChalana wants to merge 1 commit into
sysprog21:masterfrom
RehanChalana:lkmpg_388

Conversation

@RehanChalana

@RehanChalana RehanChalana commented Oct 19, 2026 •

Copy link
Copy Markdown

Summary by cubic

Refactors the multi-file module example to use the standard module_init and module_exit macros instead of the legacy init_module and cleanup_module entry points.

  • start.c and stop.c now define static __init and __exit functions and register them with the appropriate macros.
  • Adds linux/init.h include for the macro definitions.

Written for commit efa896c. Summary will update on new commits.

View guided diff

Closes #388

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

View guided diff | Re-trigger cubic

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4.6 Modules Spanning Multiple Files examples should be updated with new init syntax

1 participant