offsetof 364 arch/x86/include/asm/paravirt_types.h (offsetof(struct paravirt_patch_template, x) / sizeof(void *)) offsetof 261 arch/x86/include/asm/processor.h #define IO_BITMAP_OFFSET offsetof(struct tss_struct, io_bitmap) offsetof 167 arch/x86/include/asm/ptrace.h #define MAX_REG_OFFSET (offsetof(struct pt_regs, ss)) offsetof 188 arch/x86/include/asm/ptrace.h if (offset == offsetof(struct pt_regs, sp) && offsetof 64 arch/x86/include/asm/stackprotector.h BUILD_BUG_ON(offsetof(union irq_stack_union, stack_canary) != 40); offsetof 20 arch/x86/include/asm/switch_to.h , [task_canary] "i" (offsetof(struct task_struct, stack_canary)) offsetof 96 arch/x86/include/asm/switch_to.h , [task_canary] "i" (offsetof(struct task_struct, stack_canary)) offsetof 119 arch/x86/include/asm/switch_to.h [threadrsp] "i" (offsetof(struct task_struct, thread.sp)), \ offsetof 120 arch/x86/include/asm/switch_to.h [ti_flags] "i" (offsetof(struct thread_info, flags)), \ offsetof 122 arch/x86/include/asm/switch_to.h [thread_info] "i" (offsetof(struct task_struct, stack)), \ offsetof 109 include/linux/blk_types.h #define BIO_RESET_BYTES offsetof(struct bio, bi_max_vecs) offsetof 294 include/linux/device-mapper.h return (char *)bio - offsetof(struct dm_target_io, clone) - data_size; offsetof 299 include/linux/device-mapper.h return (struct bio *)((char *)data + data_size + offsetof(struct dm_target_io, clone)); offsetof 336 include/linux/filter.h offsetof(struct bpf_prog, insns[proglen])); offsetof 39 include/linux/flex_array.h (FLEX_ARRAY_BASE_SIZE - offsetof(struct flex_array, parts)) offsetof 1007 include/linux/ieee80211.h #define IEEE80211_MIN_ACTION_SIZE offsetof(struct ieee80211_mgmt, u.action.u) offsetof 449 include/linux/if_vlan.h protop = skb_header_pointer(skb, offsetof(struct vlan_ethhdr, offsetof 10 include/linux/kbuild.h DEFINE(sym, offsetof(struct str, mem)) offsetof 797 include/linux/kernel.h (type *)( (char *)__mptr - offsetof(type,member) );}) offsetof 254 include/linux/kexec.h (unsigned long)offsetof(struct name, field)) offsetof 725 include/linux/libata.h #define ATA_DEVICE_CLEAR_BEGIN offsetof(struct ata_device, n_sectors) offsetof 726 include/linux/libata.h #define ATA_DEVICE_CLEAR_END offsetof(struct ata_device, ering) offsetof 790 include/linux/libata.h #define ATA_LINK_CLEAR_BEGIN offsetof(struct ata_link, active_tag) offsetof 791 include/linux/libata.h #define ATA_LINK_CLEAR_END offsetof(struct ata_link, device[0]) offsetof 589 include/linux/mlx5/driver.h .struct_offset_bytes = offsetof(struct ib_unpacked_ ## header, field), \ offsetof 230 include/linux/netfilter/x_tables.h #define XT_TABLE_INFO_SZ (offsetof(struct xt_table_info, entries) \ offsetof 1118 include/linux/rcupdate.h __kfree_rcu(&((ptr)->rcu_head), offsetof(typeof(*(ptr)), rcu_head)) offsetof 570 include/linux/skbuff.h #define PKT_TYPE_OFFSET() offsetof(struct sk_buff, __pkt_type_offset) offsetof 69 include/linux/spinlock_types.h # define LOCK_PADSIZE (offsetof(struct raw_spinlock, dep_map)) offsetof 90 include/linux/vfio.h (offsetof(TYPE, MEMBER) + sizeof(((TYPE *)0)->MEMBER)) offsetof 165 include/linux/virtio_config.h offsetof(structname, member)); \ offsetof 169 include/linux/virtio_config.h offsetof(structname, member)); \ offsetof 173 include/linux/virtio_config.h offsetof(structname, member)); \ offsetof 177 include/linux/virtio_config.h offsetof(structname, member)); \ offsetof 194 include/linux/virtio_config.h offsetof(structname, member), \ offsetof 199 include/linux/virtio_config.h offsetof(structname, member), \ offsetof 204 include/linux/virtio_config.h offsetof(structname, member), \ offsetof 209 include/linux/virtio_config.h offsetof(structname, member), \ offsetof 30 include/linux/wireless.h #define IW_EV_COMPAT_LCP_LEN offsetof(struct __compat_iw_event, pointer) offsetof 31 include/linux/wireless.h #define IW_EV_COMPAT_POINT_OFF offsetof(struct compat_iw_point, length) offsetof 247 include/net/dst.h BUILD_BUG_ON(offsetof(struct dst_entry, __refcnt) & 63); offsetof 76 include/net/ip6_checksum.h skb->csum_offset = offsetof(struct tcphdr, check); offsetof 201 include/net/ip6_fib.h BUILD_BUG_ON(offsetof(struct rt6_info, dst) != 0); offsetof 806 include/net/mac80211.h BUILD_BUG_ON(offsetof(struct ieee80211_tx_info, status.rates) != offsetof 807 include/net/mac80211.h offsetof(struct ieee80211_tx_info, control.rates)); offsetof 808 include/net/mac80211.h BUILD_BUG_ON(offsetof(struct ieee80211_tx_info, status.rates) != offsetof 809 include/net/mac80211.h offsetof(struct ieee80211_tx_info, driver_rates)); offsetof 810 include/net/mac80211.h BUILD_BUG_ON(offsetof(struct ieee80211_tx_info, status.rates) != 8); offsetof 816 include/net/mac80211.h offsetof(struct ieee80211_tx_info, status.ack_signal) != 20); offsetof 819 include/net/mac80211.h offsetof(struct ieee80211_tx_info, status.ampdu_ack_len)); offsetof 204 include/net/route.h BUILD_BUG_ON(offsetof(struct rtable, dst) != 0); offsetof 264 include/net/sch_generic.h BUILD_BUG_ON(sizeof(skb->cb) < offsetof(struct qdisc_skb_cb, data) + sz); offsetof 927 include/net/sock.h if (offsetof(struct sock, sk_node.next) != 0) offsetof 928 include/net/sock.h memset(sk, 0, offsetof(struct sock, sk_node.next)); offsetof 930 include/net/sock.h size - offsetof(struct sock, sk_node.pprev)); offsetof 1702 include/net/sock.h BUILD_BUG_ON(offsetof(struct socket_wq, wait) != 0); offsetof 1524 include/net/xfrm.h XFRM_SPI_SKB_CB(skb)->daddroff = offsetof(struct iphdr, daddr); offsetof 70 include/rxrpc/packet.h #define __rxrpc_header_off(X) offsetof(struct rxrpc_header,X) offsetof 251 include/scsi/osd_sense.h #define OSD_CDB_OFFSET(F) offsetof(struct osd_cdb_head, F) offsetof 259 include/scsi/osd_sense.h offsetof(struct osd_capability_head, offsetof 324 include/trace/ftrace.h offsetof(typeof(field), item), \ offsetof 333 include/trace/ftrace.h offsetof(typeof(field), item), \ offsetof 351 include/trace/ftrace.h offsetof(typeof(field), item), \ offsetof 361 include/trace/ftrace.h offsetof(typeof(field), __data_loc_##item), \ offsetof 419 include/trace/ftrace.h offsetof(typeof(*entry), __data); \ offsetof 698 include/uapi/linux/fuse.h #define FUSE_NAME_OFFSET offsetof(struct fuse_dirent, name) offsetof 710 include/uapi/linux/fuse.h offsetof(struct fuse_direntplus, dirent.name) offsetof 391 include/uapi/linux/genwqe/genwqe_card.h (((_flags) & 0xf) << (44 - (4 * (offsetof(_struct, _field) / 8)))) offsetof 28 include/xen/interface/io/ring.h (__RD32(((_sz) - offsetof(struct _s##_sring, ring)) / \ offsetof 20 scripts/kconfig/list.h (type *)( (char *)__mptr - offsetof(type,member) );}) offsetof 6 scripts/mod/devicetable-offsets.c DEFINE(OFF_##devid##_##field, offsetof(struct devid, field))