Skip to content

Clarify __init wording for loadable modules#361

Merged
jserv merged 1 commit intosysprog21:masterfrom
bclegend:clarify-init
Mar 1, 2026
Merged

Clarify __init wording for loadable modules#361
jserv merged 1 commit intosysprog21:masterfrom
bclegend:clarify-init

Conversation

@bclegend
Copy link
Contributor

@bclegend bclegend commented Feb 27, 2026

Replace the phrase "but not loadable modules" with more explicit description in section 4.3.

The current wording can be misread as implying that __init has no observable effect for loadable modules.

closes #360


Summary by cubic

Clarifies the documentation for the __init macro to avoid implying it has no effect for loadable modules. The text now explains that __init still places functions in an init-only section for modules and that do_free_init may be observable during module loading.

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

Replace the phrase "but not loadable modules" with more explicit
description in section 4.3.

The current wording can be misread as implying that __init has no
observable effect for loadable modules.
Copy link

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

Choose a reason for hiding this comment

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

No issues found across 1 file


Since this is your first cubic review, here's how it works:

  • cubic automatically reviews your code and comments on bugs and improvements
  • Teach cubic by replying to its comments. cubic learns from your replies and gets better over time
  • Add one-off context when rerunning by tagging @cubic-dev-ai with guidance or docs links (including llms.txt)
  • Ask questions if you need clarification on any suggestion

Copy link
Collaborator

@EricccTaiwan EricccTaiwan left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

@EricccTaiwan EricccTaiwan requested a review from jserv March 1, 2026 04:17
@jserv jserv merged commit d1febe2 into sysprog21:master Mar 1, 2026
2 checks passed
@jserv
Copy link
Contributor

jserv commented Mar 1, 2026

Thank @bclegend for contributing!

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.

Clarify LKMPG 4.3 statement about __init and loadable modules

3 participants