[RFC] Expanding Scope-based Resource Management
From: Jemmy Wong
Date: Sat Jun 14 2025 - 05:21:28 EST
Hi Peter,
I greatly admire the Scope-based Resource Management infrastructure
you introduced to the Linux kernel, as it elegantly aligns with the
Resource Acquisition Is Initialization (RAII) programming idiom,
improving code safety and maintainability.
I am interested in driving a comprehensive conversion of traditional
manual lock/unlock patterns to use guard/scoped_guard,
starting with the sched module.
Before proceeding, I’d like to confirm if you believe
this effort is valuable and whether you’d support such a conversion.
Best,
Jemmy