Re: [PATCH] overflow: Introduce struct_offset() to get offset of member

Steven Rostedt
2025-11-28T03:27:20Z

On Thu, 27 Nov 2025 18:00:01 -0800
Kees Cook <kees@kernel.org> wrote:

> I'd rather it keep the same API style as struct_size() if it's going to share the naming style.

Fair enough. Then I won't change it.

>
> If you have an instance and not a pointer, just slap on a & :)

:-p

I guess that would work. Although it will kinda look a bit strange.
At least to me.

-- Steve