Re: [PATCH v2 1/4] sys_info: add helper for callers that handle all_bt
From: Andy Shevchenko
Date: Tue Jun 23 2026 - 16:12:25 EST
On Tue, Jun 23, 2026 at 03:34:58PM +0000, Bradley Morgan wrote:
> Some callers handle SYS_INFO_ALL_BT themselves before calling sys_info().
> Add a helper that strips that bit without turning an all_bt only mask into
> a kernel_sys_info fallback.
You also want a getter with check
bool sysinfo_is_all_bt_enabled(..., *si_mask)
where *si_mask is the result of READ_ONCE() that you keep as implementation
detail inside this helper.
--
With Best Regards,
Andy Shevchenko