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

From: Steven Rostedt

Date: Thu Nov 27 2025 - 22:27:20 EST


On Thu, 27 Nov 2025 18:00:01 -0800
Kees Cook <kees@xxxxxxxxxx> 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