/kernel/linux/linux-5.10/include/linux/ |
D | stddef.h | 17 #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER) argument 19 #define offsetof(TYPE, MEMBER) ((size_t)&((TYPE *)0)->MEMBER) argument 28 #define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER)) argument 36 #define offsetofend(TYPE, MEMBER) \ argument 37 (offsetof(TYPE, MEMBER) + sizeof_field(TYPE, MEMBER))
|
D | filter.h | 502 #define bpf_ctx_range(TYPE, MEMBER) \ argument 503 offsetof(TYPE, MEMBER) ... offsetofend(TYPE, MEMBER) - 1 507 # define bpf_ctx_range_ptr(TYPE, MEMBER) \ argument 508 offsetof(TYPE, MEMBER) ... offsetofend(TYPE, MEMBER) - 1 510 # define bpf_ctx_range_ptr(TYPE, MEMBER) \ argument 511 offsetof(TYPE, MEMBER) ... offsetof(TYPE, MEMBER) + 8 - 1 514 #define bpf_target_off(TYPE, MEMBER, SIZE, PTR_SIZE) \ argument 516 BUILD_BUG_ON(sizeof_field(TYPE, MEMBER) != (SIZE)); \ 518 offsetof(TYPE, MEMBER); \
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | bpf_util.h | 35 #define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER)) argument 39 #define offsetofend(TYPE, MEMBER) \ argument 40 (offsetof(TYPE, MEMBER) + sizeof_field(TYPE, MEMBER))
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
D | i915_params.h | 85 #define MEMBER(T, member, ...) T member; macro 87 I915_PARAMS_FOR_EACH(MEMBER); 89 #undef MEMBER
|
D | i915_params.c | 38 #define MEMBER(T, member, value, ...) .member = (value), macro 39 I915_PARAMS_FOR_EACH(MEMBER) 40 #undef MEMBER
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
D | bpf_helpers.h | 46 #define offsetof(TYPE, MEMBER) ((unsigned long)&((TYPE *)0)->MEMBER) argument
|
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
D | sysfs.c | 172 #define SHOW_CPUDATA_ULONG_NAME(NAME, MEMBER) \ argument 177 return sprintf(buf, "%lu\n", c->MEMBER); \ 180 #define SHOW_CPUDATA_UINT_NAME(NAME, MEMBER) \ argument 185 return sprintf(buf, "%u\n", c->MEMBER); \
|
/kernel/linux/linux-5.10/tools/usb/usbip/libsrc/ |
D | list.h | 124 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument
|
/kernel/linux/linux-5.10/scripts/kconfig/ |
D | list.h | 10 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument
|
/kernel/linux/linux-5.10/arch/x86/kernel/fpu/ |
D | init.c | 147 #define CHECK_MEMBER_AT_END_OF(TYPE, MEMBER) \ argument 149 ALIGN(offsetofend(TYPE, MEMBER), _Alignof(TYPE)))
|
/kernel/linux/linux-5.10/tools/include/linux/ |
D | kernel.h | 23 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
D | test_select_reuseport_kern.c | 21 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument
|
D | test_tcp_hdr_options.c | 19 #define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER)) argument
|
D | test_cls_redirect.c | 31 #define offsetofend(TYPE, MEMBER) \ argument 32 (offsetof(TYPE, MEMBER) + sizeof((((TYPE *)0)->MEMBER)))
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
D | mkregtable.c | 20 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) argument
|
/kernel/linux/linux-5.10/samples/bpf/ |
D | test_lru_dist.c | 26 # define offsetof(TYPE, MEMBER) ((size_t)&((TYPE *)0)->MEMBER) argument
|
/kernel/linux/linux-5.10/Documentation/RCU/ |
D | rcu_dereference.rst | 361 WHICH MEMBER OF THE rcu_dereference() FAMILY SHOULD YOU USE?
|