Re: [PATCH v2 05/63] stddef: Introduce struct_group() helper macro

2021-08-18 Thread Dan Williams
On Tue, Aug 17, 2021 at 11:06 PM Kees Cook wrote: > > Kernel code has a regular need to describe groups of members within a > structure usually when they need to be copied or initialized separately > from the rest of the surrounding structure. The generally accepted design > pattern in C is to use

[PATCH v2 05/63] stddef: Introduce struct_group() helper macro

2021-08-17 Thread Kees Cook
Kernel code has a regular need to describe groups of members within a structure usually when they need to be copied or initialized separately from the rest of the surrounding structure. The generally accepted design pattern in C is to use a named sub-struct: struct foo { in