/usr/src/kernels/4.18.0-553.157.1.el8_10.x86_64/include/linux
NameSizeModeActions
amba/-0755rm
avf/-0755rm
bcma/-0755rm
byteorder/-0755rm
can/-0755rm
ceph/-0755rm
clk/-0755rm
crush/-0755rm
decompress/-0755rm
dma/-0755rm
dsa/-0755rm
extcon/-0755rm
firmware/-0755rm
fpga/-0755rm
fsl/-0755rm
gpio/-0755rm
hsi/-0755rm
iio/-0755rm
input/-0755rm
irqchip/-0755rm
isdn/-0755rm
lockd/-0755rm
mailbox/-0755rm
mfd/-0755rm
mlx4/-0755rm
mlx5/-0755rm
mmc/-0755rm
mtd/-0755rm
mux/-0755rm
net/-0755rm
netfilter/-0755rm
netfilter_arp/-0755rm
netfilter_bridge/-0755rm
netfilter_ipv4/-0755rm
netfilter_ipv6/-0755rm
pcs/-0755rm
perf/-0755rm
phy/-0755rm
pinctrl/-0755rm
platform_data/-0755rm
power/-0755rm
qed/-0755rm
raid/-0755rm
regulator/-0755rm
remoteproc/-0755rm
reset/-0755rm
rpmsg/-0755rm
rtc/-0755rm
sched/-0755rm
soc/-0755rm
soundwire/-0755rm
spi/-0755rm
ssb/-0755rm
sunrpc/-0755rm
ulpi/-0755rm
unaligned/-0755rm
usb/-0755rm
uwb/-0755rm
wimax/-0755rm
8250_pci.h10380644editdlrm
a.out.h3540644editdlrm
acct.h25510644editdlrm
acpi.h431300644editdlrm
acpi_apmt.h3670644editdlrm
acpi_dma.h33000644editdlrm
acpi_iort.h32350644editdlrm
acpi_pmtmr.h6740644editdlrm
adb.h18320644editdlrm
adfs_fs.h5740644editdlrm
adxl.h3100644editdlrm
aer.h18220644editdlrm
agpgart.h39080644editdlrm
agp_backend.h35340644editdlrm
ahci-remap.h6070644editdlrm
ahci_platform.h17720644editdlrm
aio.h6510644editdlrm
alarmtimer.h18750644editdlrm
altera_jtaguart.h3790644editdlrm
altera_uart.h3970644editdlrm
amd-iommu.h69310644editdlrm
amd-pstate.h33560644editdlrm
anon_inodes.h4940644editdlrm
aperture.h16190644editdlrm
apm-emulation.h15750644editdlrm
apm_bios.h27460644editdlrm
apple-gmux.h14590644editdlrm
apple_bl.h4980644editdlrm
arch_topology.h19830644editdlrm
arm-cci.h20580644editdlrm
arm-smccc.h160660644editdlrm
arm_sdei.h26410644editdlrm
array_size.h3320644editdlrm
ascii85.h5320644editdlrm
asn1.h20390644editdlrm
asn1_ber_bytecode.h27830644editdlrm
asn1_decoder.h6750644editdlrm
assoc_array.h31560644editdlrm
assoc_array_priv.h56300644editdlrm
async.h45910644editdlrm
async_tx.h74870644editdlrm
ata.h339800644editdlrm
atalk.h45500644editdlrm
ata_platform.h7290644editdlrm
ath9k_platform.h14770644editdlrm
atm.h2870644editdlrm
atmdev.h104570644editdlrm
atmel-mci.h14290644editdlrm
atmel-ssc.h99710644editdlrm
atmel_pdc.h15020644editdlrm
atmel_tc.h116000644editdlrm
atm_suni.h2530644editdlrm
atm_tcp.h5110644editdlrm
atomic.h375460644editdlrm
attribute_container.h27990644editdlrm
audit.h203320644editdlrm
audit_arch.h5590644editdlrm
auto_dev-ioctl.h4540644editdlrm
auto_fs.h4360644editdlrm
auxiliary_bus.h27870644editdlrm
auxvec.h3040644editdlrm
average.h24810644editdlrm
b1pcmcia.h6660644editdlrm
backing-dev-defs.h103270644editdlrm
backing-dev.h122600644editdlrm
backlight.h134470644editdlrm
badblocks.h21880644editdlrm
balloon_compaction.h67450644editdlrm
bcd.h5590644editdlrm
bch.h26600644editdlrm
bcm47xx_nvram.h12470644editdlrm
bcm47xx_sprom.h6000644editdlrm
bcm47xx_wdt.h5550644editdlrm
bcm963xx_nvram.h30360644editdlrm
bcm963xx_tag.h36850644editdlrm
binfmts.h54430644editdlrm
bio.h206900644editdlrm
bitfield.h58990644editdlrm
bitmap.h214960644editdlrm
bitops.h88700644editdlrm
bitrev.h25410644editdlrm
bits.h15120644editdlrm
bit_spinlock.h23600644editdlrm
blk-cgroup.h227280644editdlrm
blk-mq-pci.h2690644editdlrm
blk-mq-rdma.h2340644editdlrm
blk-mq-virtio.h2930644editdlrm
blk-mq.h160740644editdlrm
blk-pm.h7170644editdlrm
blkdev.h588980644editdlrm
blkpg.h4360644editdlrm
blktrace_api.h37770644editdlrm
blk_types.h153420644editdlrm
blockgroup_lock.h8100644editdlrm
bma150.h19380644editdlrm
bottom_half.h8030644editdlrm
bpf-cgroup.h198180644editdlrm
bpf-netns.h15590644editdlrm
bpf.h733870644editdlrm
bpfilter.h7910644editdlrm
bpfptr.h17330644editdlrm
bpf_lirc.h6980644editdlrm
bpf_local_storage.h53490644editdlrm
bpf_lsm.h14310644editdlrm
bpf_trace.h1660644editdlrm
bpf_types.h53950644editdlrm
bpf_verifier.h187910644editdlrm
brcmphy.h140230644editdlrm
bsearch.h2750644editdlrm
bsg-lib.h24550644editdlrm
bsg.h10940644editdlrm
btf.h73630644editdlrm
btf_ids.h51740644editdlrm
btree-128.h27370644editdlrm
btree-type.h39910644editdlrm
btree.h69990644editdlrm
btrfs.h1450644editdlrm
buffer_head.h143790644editdlrm
bug.h19670644editdlrm
buildid.h2480644editdlrm
build_bug.h30660644editdlrm
bvec.h41190644editdlrm
c2port.h15290644editdlrm
cache.h21820644editdlrm
cacheinfo.h47960644editdlrm
capability.h81790644editdlrm
cb710.h58270644editdlrm
cciss_ioctl.h10530644editdlrm
ccp.h186970644editdlrm
cc_platform.h31400644editdlrm
cdev.h8450644editdlrm
cdrom.h91930644editdlrm
cfag12864b.h14990644editdlrm
cgroup-defs.h272420644editdlrm
cgroup.h288800644editdlrm
cgroup_rdma.h13580644editdlrm
cgroup_subsys.h12590644editdlrm
circ_buf.h11200644editdlrm
cleancache.h39820644editdlrm
cleanup.h142150644editdlrm
clk-provider.h375420644editdlrm
clk.h251570644editdlrm
clkdev.h16980644editdlrm
clockchips.h74450644editdlrm
clocksource.h91880644editdlrm
clock_cooling.h21060644editdlrm
cm4000_cs.h1990644editdlrm
cma.h12120644editdlrm
cmdline-parser.h12380644editdlrm
cnt32_to_63.h36910644editdlrm
cn_proc.h18900644editdlrm
coda.h22440644editdlrm
coda_psdev.h26920644editdlrm
compaction.h76540644editdlrm
compat.h357390644editdlrm
compat_time.h4990644editdlrm
compiler-clang.h24460644editdlrm
compiler-gcc.h57560644editdlrm
compiler-intel.h9490644editdlrm
compiler.h157180644editdlrm
compiler_attributes.h106000644editdlrm
compiler_types.h69310644editdlrm
completion.h42010644editdlrm
component.h44590644editdlrm
concap.h37780644editdlrm
configfs.h94410644editdlrm
connector.h24900644editdlrm
console.h75040644editdlrm
consolemap.h10680644editdlrm
console_struct.h69660644editdlrm
const.h4210644editdlrm
container.h6680644editdlrm
container_of.h12780644editdlrm
context_tracking.h51680644editdlrm
context_tracking_state.h15290644editdlrm
cookie.h12540644editdlrm
cordic.h17940644editdlrm
coredump.h7970644editdlrm
coresight-pmu.h9890644editdlrm
coresight-stm.h1520644editdlrm
coresight.h96760644editdlrm
counter.h154970644editdlrm
counter_enum.h14630644editdlrm
count_zeros.h16600644editdlrm
cper.h168260644editdlrm
cpu.h79590644editdlrm
cpufeature.h18820644editdlrm
cpufreq.h342480644editdlrm
cpuhotplug.h142690644editdlrm
cpuidle.h130610644editdlrm
cpuidle_haltpoll.h3120644editdlrm
cpumask.h297210644editdlrm
cpuset.h82970644editdlrm
cpu_cooling.h23890644editdlrm
cpu_pm.h28500644editdlrm
cpu_rmap.h19020644editdlrm
crash_core.h32920644editdlrm
crash_dump.h51930644editdlrm
crc-ccitt.h6090644editdlrm
crc-itu-t.h6130644editdlrm
crc-t10dif.h4530644editdlrm
crc4.h1920644editdlrm
crc7.h3160644editdlrm
crc8.h37470644editdlrm
crc16.h6220644editdlrm
crc32.h28940644editdlrm
crc32c.h3310644editdlrm
crc32poly.h6100644editdlrm
cred.h127490644editdlrm
crypto.h593930644editdlrm
cryptohash.h5460644editdlrm
cs5535.h64260644editdlrm
ctype.h17910644editdlrm
cuda.h5010644editdlrm
cxl_err.h4680644editdlrm
cyclades.h106070644editdlrm
damon.h196160644editdlrm
davinci_emac.h11500644editdlrm
dax.h75530644editdlrm
dca.h26980644editdlrm
dcache.h196210644editdlrm
dccp.h109890644editdlrm
dcookies.h13290644editdlrm
debugfs.h119210644editdlrm
debugobjects.h39880644editdlrm
debug_locks.h16270644editdlrm
delay.h23350644editdlrm
delayacct.h62850644editdlrm
delayed_call.h7090644editdlrm
dell-led.h1280644editdlrm
devcoredump.h28490644editdlrm
devfreq-event.h57780644editdlrm
devfreq.h129870644editdlrm
devfreq_cooling.h36080644editdlrm
device-mapper.h195290644editdlrm
device.h672750644editdlrm
device_cgroup.h16800644editdlrm
devm-helpers.h27400644editdlrm
devpts_fs.h13140644editdlrm
dev_printk.h77310644editdlrm
digsig.h13790644editdlrm
dim.h89510644editdlrm
dio.h112290644editdlrm
dirent.h2160644editdlrm
dlm.h72400644editdlrm
dlm_plock.h6780644editdlrm
dm-bufio.h45740644editdlrm
dm-dirty-log.h40380644editdlrm
dm-io.h19800644editdlrm
dm-kcopyd.h30130644editdlrm
dm-region-hash.h31820644editdlrm
dm9000.h11360644editdlrm
dma-buf.h215470644editdlrm
dma-contiguous.h50700644editdlrm
dma-direct.h36810644editdlrm
dma-direction.h4070644editdlrm
dma-fence-array.h29830644editdlrm
dma-fence-chain.h35760644editdlrm
dma-fence-unwrap.h22980644editdlrm
dma-fence.h211620644editdlrm
dma-iommu.h30200644editdlrm
dma-map-ops.h108630644editdlrm
dma-mapping.h231700644editdlrm
dma-resv.h172450644editdlrm
dmaengine.h548910644editdlrm
dmapool.h18320644editdlrm
dmar.h87910644editdlrm
dmi.h43750644editdlrm
dnotify.h10470644editdlrm
dns_resolver.h13390644editdlrm
dqblk_qtree.h22380644editdlrm
dqblk_v1.h3270644editdlrm
dqblk_v2.h4060644editdlrm
drbd.h109230644editdlrm
drbd_genl.h220100644editdlrm
drbd_genl_api.h18080644editdlrm
drbd_limits.h80030644editdlrm
ds2782_battery.h1580644editdlrm
dtlk.h35840644editdlrm
dw_apb_timer.h17430644editdlrm
dynamic_debug.h58310644editdlrm
dynamic_queue_limits.h38120644editdlrm
earlycpio.h3590644editdlrm
ecryptfs.h39150644editdlrm
edac.h207180644editdlrm
edd.h14690644editdlrm
edma.h8070644editdlrm
eeprom_93cx6.h30080644editdlrm
eeprom_93xx46.h7760644editdlrm
efi-bgrt.h6440644editdlrm
efi.h628130644editdlrm
efs_vh.h15850644editdlrm
eisa.h30310644editdlrm
elevator.h60590644editdlrm
elf-fdpic.h22370644editdlrm
elf-randomize.h5830644editdlrm
elf.h15650644editdlrm
elfcore-compat.h12670644editdlrm
elfcore.h21600644editdlrm
elfnote.h36250644editdlrm
enclosure.h47110644editdlrm
energy_model.h59940644editdlrm
err.h15830644editdlrm
errname.h2830644editdlrm
errno.h14240644editdlrm
error-injection.h6070644editdlrm
errqueue.h5240644editdlrm
errseq.h3820644editdlrm
etherdevice.h169170644editdlrm
ethtool.h355800644editdlrm
ethtool_netlink.h19200644editdlrm
eventfd.h21670644editdlrm
eventpoll.h24570644editdlrm
evm.h29850644editdlrm
export.h36970644editdlrm
exportfs.h76920644editdlrm
ext2_fs.h9670644editdlrm
extable.h13090644editdlrm
extcon-provider.h44310644editdlrm
extcon.h102700644editdlrm
f2fs_fs.h185260644editdlrm
f75375s.h5410644editdlrm
falloc.h17190644editdlrm
fanotify.h23360644editdlrm
fault-inject.h19750644editdlrm
fb.h287120644editdlrm
fbcon.h21360644editdlrm
fcdevice.h9880644editdlrm
fcntl.h18080644editdlrm
fd.h4900644editdlrm
fddidevice.h10440644editdlrm
fdtable.h36160644editdlrm
fec.h6090644editdlrm
file.h31470644editdlrm
filter.h427810644editdlrm
fips.h1670644editdlrm
firewire.h138680644editdlrm
firmware-map.h13510644editdlrm
firmware.h58740644editdlrm
fixp-arith.h45160644editdlrm
flat.h16530644editdlrm
flex_array.h44120644editdlrm
flex_proportions.h28810644editdlrm
fmc-sdb.h13190644editdlrm
fmc.h98770644editdlrm
font.h15980644editdlrm
fortify-string.h165500644editdlrm
freezer.h92570644editdlrm
frontswap.h31210644editdlrm
fs.h1189140644editdlrm
fscache-cache.h192540644editdlrm
fscache.h295770644editdlrm
fscrypt.h94410644editdlrm
fscrypt_notsupp.h50770644editdlrm
fscrypt_supp.h74210644editdlrm
fsi.h24240644editdlrm
fsl-diu-fb.h41790644editdlrm
fsldma.h3980644editdlrm
fsl_devices.h44300644editdlrm
fsl_hypervisor.h28240644editdlrm
fsl_ifc.h256580644editdlrm
fsnotify.h77960644editdlrm
fsnotify_backend.h206650644editdlrm
fs_context.h90970644editdlrm
fs_enet_pd.h34570644editdlrm
fs_parser.h47500644editdlrm
fs_pin.h6190644editdlrm
fs_stack.h8110644editdlrm
fs_struct.h17510644editdlrm
fs_uart_pd.h15230644editdlrm
ftrace.h336190644editdlrm
ftrace_irq.h11630644editdlrm
futex.h24970644editdlrm
fwnode.h75790644editdlrm
gameport.h56950644editdlrm
gcd.h1930644editdlrm
genalloc.h79500644editdlrm
generic-radix-tree.h66710644editdlrm
genetlink.h13790644editdlrm
genhd.h160760644editdlrm
genl_magic_func.h118690644editdlrm
genl_magic_struct.h78050644editdlrm
getcpu.h6410644editdlrm
gfp.h242080644editdlrm
glob.h2560644editdlrm
goldfish.h6050644editdlrm
gpio-pxa.h5710644editdlrm
gpio.h54780644editdlrm
gpio_keys.h17820644editdlrm
hardirq.h32640644editdlrm
hash.h29980644editdlrm
hashtable.h68050644editdlrm
hdlc.h34130644editdlrm
hdlcdrv.h64700644editdlrm
hdmi.h128510644editdlrm
hid-debug.h14580644editdlrm
hid-roccat.h4840644editdlrm
hid-sensor-hub.h91900644editdlrm
hid-sensor-ids.h76170644editdlrm
hid.h383390644editdlrm
hidden.h9660644editdlrm
hiddev.h14580644editdlrm
hidraw.h11460644editdlrm
highmem-internal.h49520644editdlrm
highmem.h82350644editdlrm
highuid.h31940644editdlrm
hil.h188570644editdlrm
hil_mlc.h52490644editdlrm
hippidevice.h12630644editdlrm
hmm.h46560644editdlrm
host1x.h86180644editdlrm
hpet.h26150644editdlrm
hp_sdc.h143520644editdlrm
hrtimer.h166510644editdlrm
hrtimer_defs.h6600644editdlrm
htcpld.h6170644editdlrm
hugetlb.h274960644editdlrm
hugetlb_cgroup.h70560644editdlrm
hugetlb_inline.h3740644editdlrm
huge_mm.h157430644editdlrm
hwmon-sysfs.h20240644editdlrm
hwmon-vid.h15180644editdlrm
hwmon.h140840644editdlrm
hwspinlock.h130440644editdlrm
hw_breakpoint.h44050644editdlrm
hw_random.h23770644editdlrm
hyperv.h500100644editdlrm
hypervisor.h7480644editdlrm
i2c-algo-bit.h23220644editdlrm
i2c-algo-pca.h25990644editdlrm
i2c-algo-pcf.h19260644editdlrm
i2c-dev.h3710644editdlrm
i2c-mux.h16680644editdlrm
i2c-pxa.h4380644editdlrm
i2c-smbus.h19910644editdlrm
i2c.h378740644editdlrm
i8042.h21910644editdlrm
i8253.h8090644editdlrm
icmp.h10850644editdlrm
icmpv6.h17320644editdlrm
ide.h474030644editdlrm
idr.h97150644editdlrm
ieee80211.h1530580644editdlrm
ieee802154.h117800644editdlrm
if_arp.h19000644editdlrm
if_bridge.h53800644editdlrm
if_eql.h11000644editdlrm
if_ether.h15060644editdlrm
if_fddi.h35260644editdlrm
if_frad.h29370644editdlrm
if_link.h5920644editdlrm
if_ltalk.h1880644editdlrm
if_macvlan.h27570644editdlrm
if_phonet.h3190644editdlrm
if_pppol2tp.h7270644editdlrm
if_pppox.h29790644editdlrm
if_tap.h22880644editdlrm
if_team.h82970644editdlrm
if_tun.h20500644editdlrm
if_tunnel.h4090644editdlrm
if_vlan.h211240644editdlrm
igmp.h47530644editdlrm
ihex.h20010644editdlrm
ima.h34960644editdlrm
imx-media.h8110644editdlrm
in.h25920644editdlrm
in6.h18930644editdlrm
indirect_call_wrapper.h21910644editdlrm
inet.h29180644editdlrm
inetdevice.h86580644editdlrm
inet_diag.h26060644editdlrm
init.h97780644editdlrm
initrd.h7890644editdlrm
init_ohci1394_dma.h1960644editdlrm
init_task.h14070644editdlrm
inotify.h7130644editdlrm
input-polldev.h20740644editdlrm
input.h190020644editdlrm
instrumented.h28680644editdlrm
integrity.h10740644editdlrm
intel-iommu.h320630644editdlrm
intel-ish-client-if.h40910644editdlrm
intel-pti.h16000644editdlrm
intel_rapl.h42650644editdlrm
intel_th.h25010644editdlrm
interrupt.h247770644editdlrm
interval_tree.h8310644editdlrm
interval_tree_generic.h75130644editdlrm
io-64-nonatomic-hi-lo.h24560644editdlrm
io-64-nonatomic-lo-hi.h24560644editdlrm
io-mapping.h52220644editdlrm
io-pgtable.h84980644editdlrm
io.h62010644editdlrm
ioasid.h21740644editdlrm
ioc3.h32140644editdlrm
ioc4.h59200644editdlrm
iocontext.h48780644editdlrm
iomap.h138930644editdlrm
iommu-helper.h11460644editdlrm
iommu.h371800644editdlrm
iopoll.h81750644editdlrm
ioport.h126860644editdlrm
ioprio.h24640644editdlrm
iosys-map.h153110644editdlrm
iova.h42650644editdlrm
ip.h12350644editdlrm
ipack.h90620644editdlrm
ipc.h6130644editdlrm
ipc_namespace.h46820644editdlrm
ipmi-fru.h36940644editdlrm
ipmi.h116330644editdlrm
ipmi_smi.h110220644editdlrm
ipv6.h92830644editdlrm
ipv6_route.h5940644editdlrm
irq.h417830644editdlrm
irqbypass.h36810644editdlrm
irqchip.h15970644editdlrm
irqdesc.h84600644editdlrm
irqdomain.h206450644editdlrm
irqflags.h81050644editdlrm
irqhandler.h3620644editdlrm
irqnr.h8560644editdlrm
irqreturn.h5030644editdlrm
irq_cpustat.h8450644editdlrm
irq_poll.h5750644editdlrm
irq_sim.h9710644editdlrm
irq_work.h19240644editdlrm
isa.h21660644editdlrm
isapnp.h38960644editdlrm
iscsi_boot_sysfs.h41850644editdlrm
iscsi_ibft.h13060644editdlrm
isdn.h235450644editdlrm
isdnif.h197230644editdlrm
isdn_divertif.h13010644editdlrm
isdn_ppp.h67970644editdlrm
isicom.h15280644editdlrm
ism.h22730644editdlrm
iversion.h126700644editdlrm
jbd2.h479710644editdlrm
jhash.h47350644editdlrm
jiffies.h163400644editdlrm
journal-head.h29340644editdlrm
joystick.h4370644editdlrm
jump_label.h153760644editdlrm
jump_label_ratelimit.h28670644editdlrm
jz4740-adc.h10230644editdlrm
jz4780-nemc.h11850644editdlrm
kallsyms.h43350644editdlrm
kasan-checks.h14950644editdlrm
kasan.h126780644editdlrm
kbd_diacr.h1980644editdlrm
kbd_kern.h39310644editdlrm
kbuild.h3800644editdlrm
kconfig.h24810644editdlrm
kcore.h8910644editdlrm
kcov.h24630644editdlrm
kcsan-checks.h88590644editdlrm
kcsan.h19480644editdlrm
kdb.h74780644editdlrm
kdebug.h4870644editdlrm
kdev_t.h17440644editdlrm
kernel-page-flags.h5050644editdlrm
kernel.h206160644editdlrm
kernelcapi.h45520644editdlrm
kernel_stat.h30310644editdlrm
kernfs.h193360644editdlrm
kern_levels.h16110644editdlrm
kexec.h108960644editdlrm
key-type.h65830644editdlrm
key.h131490644editdlrm
keyboard.h6650644editdlrm
kfifo.h254310644editdlrm
kgdb.h115690644editdlrm
khugepaged.h28320644editdlrm
klist.h19260644editdlrm
kmemleak.h39540644editdlrm
kmod.h17520644editdlrm
kmsg_dump.h26270644editdlrm
kobject.h77270644editdlrm
kobject_ns.h19340644editdlrm
kobj_map.h5450644editdlrm
kprobes.h132220644editdlrm
kref.h33610644editdlrm
ks0108.h9600644editdlrm
ks8842.h12230644editdlrm
ks8851_mll.h10630644editdlrm
ksm.h27530644editdlrm
kstrtox.h67510644editdlrm
kthread.h79240644editdlrm
ktime.h66070644editdlrm
kvm_dirty_ring.h26330644editdlrm
kvm_host.h657100644editdlrm
kvm_irqfd.h24580644editdlrm
kvm_para.h4020644editdlrm
kvm_types.h32640644editdlrm
l2tp.h2610644editdlrm
lapb.h17520644editdlrm
latencytop.h12070644editdlrm
lcd.h38670644editdlrm
lcm.h2750644editdlrm
led-class-flash.h56190644editdlrm
led-lm3530.h37930644editdlrm
leds-bd2802.h6420644editdlrm
leds-lp3944.h10990644editdlrm
leds-lp3952.h25590644editdlrm
leds-pca9532.h10310644editdlrm
leds-regulator.h13170644editdlrm
leds-tca6507.h10420644editdlrm
leds.h156230644editdlrm
leds_pwm.h4070644editdlrm
libata.h685400644editdlrm
libfdt.h2020644editdlrm
libfdt_env.h4910644editdlrm
libgcc.h10990644editdlrm
libnvdimm.h98730644editdlrm
libps2.h20770644editdlrm
license.h3740644editdlrm
lightnvm.h119800644editdlrm
limits.h7150644editdlrm
linear_range.h16450644editdlrm
linkage.h93310644editdlrm
linkmode.h25590644editdlrm
linux_logo.h19560644editdlrm
lis3lv02d.h51250644editdlrm
list.h321050644editdlrm
list_bl.h49050644editdlrm
list_lru.h81930644editdlrm
list_nulls.h43220644editdlrm
list_sort.h3070644editdlrm
livepatch.h91090644editdlrm
llc.h7490644editdlrm
llist.h93680644editdlrm
local_lock.h13620644editdlrm
local_lock_internal.h34990644editdlrm
lockdep.h215850644editdlrm
lockdep_types.h53080644editdlrm
lockref.h14400644editdlrm
log2.h65420644editdlrm
logic_pio.h32570644editdlrm
lp.h28270644editdlrm
lru_cache.h127220644editdlrm
lsm_audit.h27910644editdlrm
lsm_hooks.h708180644editdlrm
lsm_hook_defs.h204550644editdlrm
lz4.h270720644editdlrm
lzo.h14040644editdlrm
mailbox_client.h18370644editdlrm
mailbox_controller.h55020644editdlrm
maple.h27750644editdlrm
marvell_phy.h16910644editdlrm
math.h51850644editdlrm
math64.h76620644editdlrm
max17040_battery.h4740644editdlrm
mbcache.h22080644editdlrm
mbus.h31680644editdlrm
mc6821.h12090644editdlrm
mc146818rtc.h45670644editdlrm
mcb.h39750644editdlrm
mdev.h58590644editdlrm
mdio-bitbang.h11490644editdlrm
mdio-gpio.h1770644editdlrm
mdio-mux.h10210644editdlrm
mdio.h137300644editdlrm
mei_aux.h9290644editdlrm
mei_cl_bus.h41960644editdlrm
memblock.h210090644editdlrm
memcontrol.h462430644editdlrm
memfd.h3650644editdlrm
memory.h40800644editdlrm
memory_hotplug.h109810644editdlrm
mempolicy.h80840644editdlrm
mempool.h34300644editdlrm
memregion.h4170644editdlrm
memremap.h78180644editdlrm
memstick.h99820644editdlrm
mem_encrypt.h9260644editdlrm
mhi.h269080644editdlrm
mhi_ep.h98660644editdlrm
micrel_phy.h15220644editdlrm
microchipphy.h33100644editdlrm
mic_bus.h32720644editdlrm
migrate.h62780644editdlrm
migrate_mode.h7580644editdlrm
mii.h162830644editdlrm
mii_timestamper.h36530644editdlrm
minmax.h63730644editdlrm
min_heap.h33770644editdlrm
miscdevice.h28640644editdlrm
misc_cgroup.h30070644editdlrm
mISDNdsp.h12170644editdlrm
mISDNhw.h59210644editdlrm
mISDNif.h152760644editdlrm
mm-arch-hooks.h6790644editdlrm
mm.h1015570644editdlrm
mman.h33570644editdlrm
mmap_lock.h20860644editdlrm
mmdebug.h23790644editdlrm
mmiotrace.h31220644editdlrm
mmu_context.h4650644editdlrm
mmu_notifier.h284620644editdlrm
mmzone.h516150644editdlrm
mm_inline.h30590644editdlrm
mm_types.h268440644editdlrm
mm_types_task.h24570644editdlrm
mnt_namespace.h5470644editdlrm
module.h236590644editdlrm
moduleloader.h31700644editdlrm
moduleparam.h202750644editdlrm
module_signature.h12500644editdlrm
mod_devicetable.h225130644editdlrm
mount.h37080644editdlrm
mpage.h7370644editdlrm
mpi.h33810644editdlrm
mpls.h3940644editdlrm
mpls_iptunnel.h1780644editdlrm
mroute.h19980644editdlrm
mroute6.h24490644editdlrm
mroute_base.h124330644editdlrm
msdos_fs.h2730644editdlrm
msdos_partition.h16550644editdlrm
msg.h3950644editdlrm
msi.h156650644editdlrm
mutex.h78370644editdlrm
mv643xx.h536570644editdlrm
mv643xx_eth.h20010644editdlrm
mv643xx_i2c.h5450644editdlrm
mvebu-pmsu.h5200644editdlrm
mxm-wmi.h10780644editdlrm
namei.h39460644editdlrm
nd.h76010644editdlrm
net.h124050644editdlrm
netdevice.h1695260644editdlrm
netdev_features.h105190644editdlrm
netfilter.h126770644editdlrm
netfilter_bridge.h19770644editdlrm
netfilter_defs.h4860644editdlrm
netfilter_ingress.h14720644editdlrm
netfilter_ipv4.h10770644editdlrm
netfilter_ipv6.h36980644editdlrm
netlink.h91700644editdlrm
netpoll.h26010644editdlrm
nfs.h11450644editdlrm
nfs3.h2600644editdlrm
nfs4.h195270644editdlrm
nfsacl.h14350644editdlrm
nfs_fs.h185780644editdlrm
nfs_fs_i.h3080644editdlrm
nfs_fs_sb.h105370644editdlrm
nfs_iostat.h42850644editdlrm
nfs_page.h69910644editdlrm
nfs_xdr.h425020644editdlrm
nitro_enclaves.h2670644editdlrm
nl802154.h43360644editdlrm
nls.h31620644editdlrm
nmi.h67580644editdlrm
node.h43990644editdlrm
nodemask.h174400644editdlrm
nospec.h21870644editdlrm
notifier.h84180644editdlrm
nsc_gpio.h14590644editdlrm
nsproxy.h26760644editdlrm
ns_common.h3010644editdlrm
ntb.h536910644editdlrm
ntb_transport.h38920644editdlrm
nubus.h56740644editdlrm
numa.h10040644editdlrm
nvme-fc-driver.h472160644editdlrm
nvme-fc.h99550644editdlrm
nvme-rdma.h25350644editdlrm
nvme-tcp.h45380644editdlrm
nvme.h391280644editdlrm
nvmem-consumer.h44540644editdlrm
nvmem-provider.h32670644editdlrm
nvram.h4950644editdlrm
n_r3964.h41550644editdlrm
objagg.h19830644editdlrm
objtool.h11550644editdlrm
of.h433070644editdlrm
of_address.h46030644editdlrm
of_clk.h7530644editdlrm
of_device.h32270644editdlrm
of_dma.h23530644editdlrm
of_fdt.h41880644editdlrm
of_gpio.h40530644editdlrm
of_graph.h36360644editdlrm
of_iommu.h5050644editdlrm
of_irq.h36910644editdlrm
of_mdio.h32130644editdlrm
of_net.h8870644editdlrm
of_pci.h9150644editdlrm
of_pdt.h12220644editdlrm
of_platform.h39740644editdlrm
of_reserved_mem.h24030644editdlrm
oid_registry.h39660644editdlrm
olpc-ec.h11040644editdlrm
omap-dma.h107540644editdlrm
omap-dmaengine.h5830644editdlrm
omap-gpmc.h30110644editdlrm
omap-iommu.h6850644editdlrm
omap-mailbox.h7770644editdlrm
omapfb.h12460644editdlrm
once.h18800644editdlrm
oom.h33410644editdlrm
openvswitch.h10190644editdlrm
oprofile.h62460644editdlrm
osq_lock.h10660644editdlrm
overflow.h122690644editdlrm
padata.h74310644editdlrm
page-flags-layout.h35010644editdlrm
page-flags.h281560644editdlrm
page-isolation.h21240644editdlrm
pageblock-flags.h33570644editdlrm
pagemap.h246490644editdlrm
pagevec.h23830644editdlrm
pagewalk.h41670644editdlrm
page_counter.h34470644editdlrm
page_ext.h17220644editdlrm
page_idle.h26830644editdlrm
page_owner.h23610644editdlrm
page_ref.h53610644editdlrm
page_reporting.h8340644editdlrm
parman.h29340644editdlrm
parport.h182730644editdlrm
parport_pc.h67130644editdlrm
parser.h11410644editdlrm
pata_arasan_cf_data.h12500644editdlrm
patchkey.h7570644editdlrm
path.h5720644editdlrm
pch_dma.h9990644editdlrm
pci-acpi.h42800644editdlrm
pci-ats.h18020644editdlrm
pci-dma-compat.h37500644editdlrm
pci-ecam.h33580644editdlrm
pci-ep-cfs.h9570644editdlrm
pci-epc.h73360644editdlrm
pci-epf.h48680644editdlrm
pci-p2pdma.h40490644editdlrm
pci.h917980644editdlrm
pci_hotplug.h47520644editdlrm
pci_ids.h1282480644editdlrm
pda_power.h11510644editdlrm
pe.h162040644editdlrm
percpu-defs.h186090644editdlrm
percpu-refcount.h111690644editdlrm
percpu-rwsem.h45730644editdlrm
percpu.h48490644editdlrm
percpu_counter.h43720644editdlrm
perf_event.h507870644editdlrm
perf_regs.h10760644editdlrm
personality.h3930644editdlrm
pfn.h6660644editdlrm
pfn_t.h33100644editdlrm
phonet.h11460644editdlrm
phy.h563860644editdlrm
phylink.h237070644editdlrm
phy_fixed.h18140644editdlrm
phy_led_triggers.h14910644editdlrm
pid.h60590644editdlrm
pid_namespace.h23860644editdlrm
pim.h27370644editdlrm
pipe_fs_i.h64710644editdlrm
pkeys.h9610644editdlrm
pktcdvd.h60110644editdlrm
pl320-ipc.h7580644editdlrm
platform_device.h141600644editdlrm
platform_profile.h11550644editdlrm
pldmfw.h48790644editdlrm
plist.h88940644editdlrm
pm-trace.h9400644editdlrm
pm.h374800644editdlrm
pm2301_charger.h17230644editdlrm
pmbus.h16210644editdlrm
pmu.h23920644editdlrm
pm_clock.h26380644editdlrm
pm_domain.h132930644editdlrm
pm_opp.h115360644editdlrm
pm_qos.h106620644editdlrm
pm_runtime.h103290644editdlrm
pm_wakeirq.h15180644editdlrm
pm_wakeup.h73540644editdlrm
pnfs_osd_xdr.h94900644editdlrm
pnp.h157650644editdlrm
poison.h26510644editdlrm
poll.h41090644editdlrm
posix-clock.h46600644editdlrm
posix-timers.h64600644editdlrm
posix_acl.h31670644editdlrm
posix_acl_xattr.h16210644editdlrm
powercap.h128890644editdlrm
power_supply.h150250644editdlrm
ppp-comp.h31720644editdlrm
ppp_channel.h31460644editdlrm
ppp_defs.h8120644editdlrm
pps-gpio.h10330644editdlrm
pps_kernel.h36200644editdlrm
pr.h5660644editdlrm
prandom.h38860644editdlrm
preempt.h122320644editdlrm
prefetch.h17400644editdlrm
prime_numbers.h13840644editdlrm
printk.h169080644editdlrm
prmt.h1430644editdlrm
processor.h18890644editdlrm
proc_fs.h61380644editdlrm
proc_ns.h28970644editdlrm
profile.h27430644editdlrm
projid.h22690644editdlrm
property.h174100644editdlrm
psci.h19510644editdlrm
pseudo_fs.h3550644editdlrm
psi.h17820644editdlrm
psi_types.h39940644editdlrm
psp-platform-access.h17220644editdlrm
psp-sev.h189210644editdlrm
psp-tee.h23160644editdlrm
psp.h6970644editdlrm
pstore.h77640644editdlrm
pstore_ram.h29800644editdlrm
pti.h1980644editdlrm
ptp_classify.h50070644editdlrm
ptp_clock_kernel.h124310644editdlrm
ptrace.h152100644editdlrm
ptr_ring.h168900644editdlrm
purgatory.h5890644editdlrm
pvclock_gtod.h5480644editdlrm
pwm.h173410644editdlrm
pwm_backlight.h8020644editdlrm
pxa2xx_ssp.h104700644editdlrm
pxa168_eth.h7280644editdlrm
qcom-geni-se.h124710644editdlrm
qcom_scm.h43810644editdlrm
qnx6_fs.h33490644editdlrm
quicklist.h21860644editdlrm
quota.h192310644editdlrm
quotaops.h105530644editdlrm
radix-tree.h179780644editdlrm
raid_class.h21490644editdlrm
ramfs.h6950644editdlrm
random.h38550644editdlrm
range.h7750644editdlrm
ras.h12110644editdlrm
ratelimit.h17610644editdlrm
ratelimit_types.h11700644editdlrm
rational.h6390644editdlrm
rbtree.h97890644editdlrm
rbtree_augmented.h104850644editdlrm
rbtree_latch.h68150644editdlrm
rbtree_types.h9460644editdlrm
rculist.h284440644editdlrm
rculist_bl.h33740644editdlrm
rculist_nulls.h55130644editdlrm
rcupdate.h385480644editdlrm
rcupdate_trace.h28820644editdlrm
rcupdate_wait.h17690644editdlrm
rcutiny.h42320644editdlrm
rcutree.h30770644editdlrm
rcuwait.h19000644editdlrm
rcu_node_tree.h44680644editdlrm
rcu_segcblist.h112920644editdlrm
rcu_sync.h23120644editdlrm
reboot-mode.h6000644editdlrm
reboot.h20980644editdlrm
reciprocal_div.h33560644editdlrm
refcount.h27990644editdlrm
regmap.h544470644editdlrm
regset.h155270644editdlrm
relay.h89080644editdlrm
remoteproc.h200780644editdlrm
resctrl.h88910644editdlrm
reservation.h92260644editdlrm
reset-controller.h30670644editdlrm
reset.h137390644editdlrm
resource.h3390644editdlrm
resource_ext.h25420644editdlrm
restart_block.h11140644editdlrm
rfkill.h110400644editdlrm
rhashtable-types.h37420644editdlrm
rhashtable.h352780644editdlrm
rh_flags.h9050644editdlrm
rh_kabi.h226330644editdlrm
rh_kabi_attributes.h5010644editdlrm
rh_kabi_aux.h9170644editdlrm
rh_kabi_memcg.h37600644editdlrm
rh_tasklist_lock.h9590644editdlrm
rh_waived.h4410644editdlrm
ring_buffer.h73710644editdlrm
rio.h196870644editdlrm
rio_drv.h150610644editdlrm
rio_ids.h13170644editdlrm
rio_regs.h197370644editdlrm
rmap.h110370644editdlrm
rmi.h124790644editdlrm
rndis.h172690644editdlrm
rodata_test.h5590644editdlrm
root_dev.h6190644editdlrm
rpmsg.h71170644editdlrm
rslib.h37540644editdlrm
rtc.h94270644editdlrm
rtmutex.h31470644editdlrm
rtnetlink.h46040644editdlrm
rtsx_common.h14750644editdlrm
rtsx_pci.h411350644editdlrm
rtsx_usb.h163340644editdlrm
rwbase_rt.h8760644editdlrm
rwlock.h40540644editdlrm
rwlock_api_smp.h77360644editdlrm
rwlock_rt.h30530644editdlrm
rwlock_types.h18140644editdlrm
rwsem.h74050644editdlrm
s3c_adc_battery.h9710644editdlrm
sa11x0-dma.h5720644editdlrm
sbitmap.h202030644editdlrm
scatterlist.h180030644editdlrm
scc.h29050644editdlrm
sched.h645760644editdlrm
sched_clock.h16170644editdlrm
scif.h602800644editdlrm
scmi_protocol.h92840644editdlrm
scpi_protocol.h26420644editdlrm
screen_info.h1910644editdlrm
scs.h18280644editdlrm
sctp.h241240644editdlrm
scx200.h18630644editdlrm
scx200_gpio.h24380644editdlrm
sdb.h42700644editdlrm
sdla.h70660644editdlrm
seccomp.h29720644editdlrm
securebits.h2390644editdlrm
security.h521850644editdlrm
sed-opal.h19850644editdlrm
seg6.h1210644editdlrm
seg6_genl.h1360644editdlrm
seg6_hmac.h1360644editdlrm
seg6_iptunnel.h1480644editdlrm
seg6_local.h1000644editdlrm
selection.h15950644editdlrm
sem.h5990644editdlrm
semaphore.h14000644editdlrm
seqlock.h392440644editdlrm
seqno-fence.h40500644editdlrm
seq_buf.h34050644editdlrm
seq_file.h82910644editdlrm
seq_file_net.h7300644editdlrm
serdev.h101010644editdlrm
serial.h6300644editdlrm
serial_8250.h65810644editdlrm
serial_bcm63xx.h48430644editdlrm
serial_core.h180580644editdlrm
serial_max3100.h14230644editdlrm
serial_pnx8xxx.h26700644editdlrm
serial_s3c.h87840644editdlrm
serial_sci.h16110644editdlrm
serio.h45280644editdlrm
set_memory.h14970644editdlrm
sfi.h58900644editdlrm
sfi_acpi.h34720644editdlrm
sfp.h162160644editdlrm
shdma-base.h45200644editdlrm
shm.h9680644editdlrm
shmem_fs.h57790644editdlrm
shrinker.h33650644editdlrm
sh_clk.h60980644editdlrm
sh_dma.h36960644editdlrm
sh_eth.h3690644editdlrm
sh_intc.h35060644editdlrm
sh_timer.h1720644editdlrm
signal.h135130644editdlrm
signalfd.h8170644editdlrm
signal_types.h12410644editdlrm
siox.h20750644editdlrm
siphash.h47380644editdlrm
sirfsoc_dma.h1620644editdlrm
sizes.h14510644editdlrm
skbuff.h1388220644editdlrm
skb_array.h55120644editdlrm
skmsg.h135570644editdlrm
slab.h250990644editdlrm
slab_def.h30090644editdlrm
slimbus.h54100644editdlrm
slub_def.h65880644editdlrm
sm501-regs.h120460644editdlrm
sm501.h47430644editdlrm
smc91x.h16040644editdlrm
smc911x.h2940644editdlrm
smp.h70850644editdlrm
smpboot.h22150644editdlrm
smp_types.h13400644editdlrm
smsc911x.h23400644editdlrm
smscphy.h12830644editdlrm
socket.h144270644editdlrm
sockptr.h22790644editdlrm
sock_diag.h23700644editdlrm
sonet.h4690644editdlrm
sony-laptop.h14410644editdlrm
sonypi.h24100644editdlrm
sort.h2470644editdlrm
sound.h6850644editdlrm
soundcard.h16310644editdlrm
spinlock.h159330644editdlrm
spinlock_api_smp.h53460644editdlrm
spinlock_api_up.h33940644editdlrm
spinlock_rt.h42090644editdlrm
spinlock_types.h18260644editdlrm
spinlock_types_raw.h17260644editdlrm
spinlock_types_up.h7260644editdlrm
spinlock_up.h21260644editdlrm
splice.h29810644editdlrm
spmi.h60940644editdlrm
sram.h8440644editdlrm
srcu.h78580644editdlrm
srcutiny.h34110644editdlrm
srcutree.h54370644editdlrm
ssbi.h11400644editdlrm
stackdepot.h13090644editdlrm
stackprotector.h3610644editdlrm
stacktrace.h43010644editdlrm
start_kernel.h3340644editdlrm
stat.h12120644editdlrm
statfs.h13460644editdlrm
static_call.h70340644editdlrm
static_call_types.h5350644editdlrm
static_key.h300644editdlrm
stddef.h32750644editdlrm
stm.h44530644editdlrm
stmmac.h76070644editdlrm
stmp3xxx_rtc_wdt.h3320644editdlrm
stmp_device.h6190644editdlrm
stop_machine.h48420644editdlrm
string.h99390644editdlrm
stringhash.h27150644editdlrm
stringify.h3410644editdlrm
string_helpers.h30820644editdlrm
sudmac.h12690644editdlrm
sungem_phy.h40310644editdlrm
sunserialcore.h11020644editdlrm
sunxi-rsb.h29550644editdlrm
superhyway.h28780644editdlrm
suspend.h214830644editdlrm
svga.h38370644editdlrm
sw842.h3280644editdlrm
swab.h5690644editdlrm
swait.h102840644editdlrm
swap.h231090644editdlrm
swapfile.h5560644editdlrm
swapops.h88950644editdlrm
swap_cgroup.h9710644editdlrm
swap_slots.h8410644editdlrm
swiotlb.h54720644editdlrm
switchtec.h115300644editdlrm
sxgbe_platform.h13710644editdlrm
synclink.h9890644editdlrm
sync_core.h5810644editdlrm
sync_file.h16060644editdlrm
sys.h9600644editdlrm
syscalls.h519130644editdlrm
syscore_ops.h6350644editdlrm
sysctl.h77700644editdlrm
sysfs.h180900644editdlrm
syslog.h19310644editdlrm
sysrq.h18960644editdlrm
sysv_fs.h92500644editdlrm
sys_soc.h12630644editdlrm
t10-pi.h15380644editdlrm
taskstats_kern.h9570644editdlrm
task_io_accounting.h11590644editdlrm
task_io_accounting_ops.h26100644editdlrm
task_work.h7180644editdlrm
tboot.h40890644editdlrm
tc.h34890644editdlrm
tca6416_keypad.h8470644editdlrm
tcp.h180920644editdlrm
tee_drv.h166850644editdlrm
textsearch.h48420644editdlrm
textsearch_fsm.h12140644editdlrm
tfrc.h19330644editdlrm
thermal.h199280644editdlrm
thinkpad_acpi.h3200644editdlrm
threads.h13090644editdlrm
thread_info.h48690644editdlrm
thunderbolt.h214350644editdlrm
ti-emif-sram.h51500644editdlrm
tick.h96120644editdlrm
tifm.h49200644editdlrm
timb_dma.h17840644editdlrm
timb_gpio.h13080644editdlrm
time.h39160644editdlrm
time32.h60680644editdlrm
time64.h40550644editdlrm
timecounter.h46930644editdlrm
timekeeper_internal.h54550644editdlrm
timekeeping.h73810644editdlrm
timekeeping32.h20550644editdlrm
timer.h70920644editdlrm
timerfd.h5080644editdlrm
timeriomem-rng.h4750644editdlrm
timerqueue.h14980644editdlrm
timex.h64660644editdlrm
time_namespace.h32170644editdlrm
ti_wilink_st.h144040644editdlrm
tnum.h34670644editdlrm
topology.h62840644editdlrm
torture.h49530644editdlrm
toshiba.h9040644editdlrm
tpm.h113450644editdlrm
tpm_command.h8470644editdlrm
tpm_eventlog.h66860644editdlrm
trace.h13110644editdlrm
tracefs.h12210644editdlrm
tracehook.h72330644editdlrm
tracepoint-defs.h9050644editdlrm
tracepoint.h180030644editdlrm
trace_clock.h6670644editdlrm
trace_events.h210350644editdlrm
trace_seq.h41850644editdlrm
transport_class.h25700644editdlrm
ts-nbus.h5320644editdlrm
tsacct_kern.h12300644editdlrm
tty.h288220644editdlrm
tty_driver.h160170644editdlrm
tty_flip.h15450644editdlrm
tty_ldisc.h79370644editdlrm
typecheck.h7820644editdlrm
types.h56600644editdlrm
u64_stats_sync.h59570644editdlrm
uaccess.h137150644editdlrm
ucb1400.h43670644editdlrm
ucs2_string.h6620644editdlrm
udp.h55520644editdlrm
uidgid.h41710644editdlrm
uio.h97560644editdlrm
uio_driver.h41910644editdlrm
umh.h18370644editdlrm
units.h26850644editdlrm
uprobes.h67830644editdlrm
usb.h817210644editdlrm
usbdevice_fs.h22340644editdlrm
usb_usual.h36710644editdlrm
user-return-notifier.h12050644editdlrm
user.h220644editdlrm
userfaultfd_k.h46510644editdlrm
usermode_driver.h5150644editdlrm
user_namespace.h50840644editdlrm
util_macros.h11970644editdlrm
uts.h3880644editdlrm
utsname.h18280644editdlrm
uuid.h28330644editdlrm
uwb.h258270644editdlrm
vbox_utils.h16750644editdlrm
vdpa.h157560644editdlrm
verification.h19960644editdlrm
vermagic.h11590644editdlrm
vexpress.h14770644editdlrm
vfio.h73320644editdlrm
vfs.h1160644editdlrm
vgaarb.h39720644editdlrm
vga_switcheroo.h88280644editdlrm
vhost_iotlb.h13690644editdlrm
via-core.h74420644editdlrm
via-gpio.h3340644editdlrm
via.h9320644editdlrm
via_i2c.h15160644editdlrm
videodev2.h27690644editdlrm
virtio.h69150644editdlrm
virtio_byteorder.h14910644editdlrm
virtio_caif.h4920644editdlrm
virtio_config.h155170644editdlrm
virtio_console.h19740644editdlrm
virtio_dma_buf.h11470644editdlrm
virtio_net.h49640644editdlrm
virtio_pci_modern.h33790644editdlrm
virtio_ring.h30350644editdlrm
virtio_vsock.h46030644editdlrm
visorbus.h125250644editdlrm
vlynq.h39690644editdlrm
vmacache.h7220644editdlrm
vmalloc.h83670644editdlrm
vme.h57940644editdlrm
vmpressure.h17360644editdlrm
vmstat.h147390644editdlrm
vmw_vmci_api.h29540644editdlrm
vmw_vmci_defs.h309280644editdlrm
vm_event_item.h33850644editdlrm
vringh.h94860644editdlrm
vt.h6110644editdlrm
vtime.h41740644editdlrm
vt_buffer.h15240644editdlrm
vt_kern.h61790644editdlrm
w1-gpio.h6390644editdlrm
w1.h93450644editdlrm
wait.h432920644editdlrm
wait_bit.h115000644editdlrm
wanrouter.h2100644editdlrm
watchdog.h80020644editdlrm
win_minmax.h8320644editdlrm
wireless.h16070644editdlrm
wkup_m3_ipc.h15650644editdlrm
wl12xx.h14220644editdlrm
wm97xx.h108600644editdlrm
wmi.h19890644editdlrm
workqueue.h218560644editdlrm
writeback.h133740644editdlrm
ww_mutex.h130370644editdlrm
xarray.h591010644editdlrm
xattr.h35720644editdlrm
xxhash.h78290644editdlrm
xz.h114310644editdlrm
yam.h28880644editdlrm
z2_battery.h3180644editdlrm
zbud.h7400644editdlrm
zconf.h17700644editdlrm
zlib.h287840644editdlrm
zorro.h40300644editdlrm
zpool.h31020644editdlrm
zsmalloc.h17300644editdlrm
zstd.h498060644editdlrm
zutil.h27930644editdlrm
Edit: /usr/src/kernels/4.18.0-553.157.1.el8_10.x86_64/include/linux/sched.h (64576B)
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_SCHED_H #define _LINUX_SCHED_H /* * Define 'struct task_struct' and provide the main scheduler * APIs (schedule(), wakeup variants, etc.) */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include /* task_struct member predeclarations (sorted alphabetically): */ struct audit_context; struct backing_dev_info; struct bio_list; struct blk_plug; struct cfs_rq; struct fs_struct; struct futex_pi_state; struct io_context; struct mempolicy; struct nameidata; struct nsproxy; struct perf_event_context; struct pid_namespace; struct pipe_inode_info; struct rcu_node; struct reclaim_state; struct capture_control; struct robust_list_head; struct root_domain; struct rq; struct sched_attr; struct sched_param; struct seq_file; struct sighand_struct; struct signal_struct; struct task_delay_info; struct task_group; /* * Task state bitmask. NOTE! These bits are also * encoded in fs/proc/array.c: get_task_state(). * * We have two separate sets of flags: task->state * is about runnability, while task->exit_state are * about the task exiting. Confusing, but this way * modifying one set can't modify the other one by * mistake. */ /* Used in tsk->state: */ #define TASK_RUNNING 0x0000 #define TASK_INTERRUPTIBLE 0x0001 #define TASK_UNINTERRUPTIBLE 0x0002 #define __TASK_STOPPED 0x0004 #define __TASK_TRACED 0x0008 /* Used in tsk->exit_state: */ #define EXIT_DEAD 0x0010 #define EXIT_ZOMBIE 0x0020 #define EXIT_TRACE (EXIT_ZOMBIE | EXIT_DEAD) /* Used in tsk->state again: */ #define TASK_PARKED 0x0040 #define TASK_DEAD 0x0080 #define TASK_WAKEKILL 0x0100 #define TASK_WAKING 0x0200 #define TASK_NOLOAD 0x0400 #define TASK_NEW 0x0800 /* RT specific auxilliary flag to mark RT lock waiters */ #define TASK_RTLOCK_WAIT 0x1000 #define TASK_STATE_MAX 0x2000 /* Convenience macros for the sake of set_current_state: */ #define TASK_KILLABLE (TASK_WAKEKILL | TASK_UNINTERRUPTIBLE) #define TASK_STOPPED (TASK_WAKEKILL | __TASK_STOPPED) #define TASK_TRACED (TASK_WAKEKILL | __TASK_TRACED) #define TASK_IDLE (TASK_UNINTERRUPTIBLE | TASK_NOLOAD) /* Convenience macros for the sake of wake_up(): */ #define TASK_NORMAL (TASK_INTERRUPTIBLE | TASK_UNINTERRUPTIBLE) /* get_task_state(): */ #define TASK_REPORT (TASK_RUNNING | TASK_INTERRUPTIBLE | \ TASK_UNINTERRUPTIBLE | __TASK_STOPPED | \ __TASK_TRACED | EXIT_DEAD | EXIT_ZOMBIE | \ TASK_PARKED) #define task_is_running(task) (READ_ONCE((task)->__state) == TASK_RUNNING) #define task_is_traced(task) ((READ_ONCE(task->__state) & __TASK_TRACED) != 0) #define task_is_stopped(task) ((READ_ONCE(task->__state) & __TASK_STOPPED) != 0) #define task_is_stopped_or_traced(task) ((READ_ONCE(task->__state) & (__TASK_STOPPED | __TASK_TRACED)) != 0) /* * Special states are those that do not use the normal wait-loop pattern. See * the comment with set_special_state(). */ #define is_special_task_state(state) \ ((state) & (__TASK_STOPPED | __TASK_TRACED | TASK_PARKED | TASK_DEAD)) #ifdef CONFIG_DEBUG_ATOMIC_SLEEP # define debug_normal_state_change(state_value) \ do { \ WARN_ON_ONCE(is_special_task_state(state_value)); \ current->task_state_change = _THIS_IP_; \ } while (0) # define debug_special_state_change(state_value) \ do { \ WARN_ON_ONCE(!is_special_task_state(state_value)); \ current->task_state_change = _THIS_IP_; \ } while (0) # define debug_rtlock_wait_set_state() \ do { \ current->saved_state_change = current->task_state_change;\ current->task_state_change = _THIS_IP_; \ } while (0) # define debug_rtlock_wait_restore_state() \ do { \ current->task_state_change = current->saved_state_change;\ } while (0) #else # define debug_normal_state_change(cond) do { } while (0) # define debug_special_state_change(cond) do { } while (0) # define debug_rtlock_wait_set_state() do { } while (0) # define debug_rtlock_wait_restore_state() do { } while (0) #endif /* * set_current_state() includes a barrier so that the write of current->state * is correctly serialised wrt the caller's subsequent test of whether to * actually sleep: * * for (;;) { * set_current_state(TASK_UNINTERRUPTIBLE); * if (CONDITION) * break; * * schedule(); * } * __set_current_state(TASK_RUNNING); * * If the caller does not need such serialisation (because, for instance, the * CONDITION test and condition change and wakeup are under the same lock) then * use __set_current_state(). * * The above is typically ordered against the wakeup, which does: * * CONDITION = 1; * wake_up_state(p, TASK_UNINTERRUPTIBLE); * * where wake_up_state()/try_to_wake_up() executes a full memory barrier before * accessing p->state. * * Wakeup will do: if (@state & p->state) p->state = TASK_RUNNING, that is, * once it observes the TASK_UNINTERRUPTIBLE store the waking CPU can issue a * TASK_RUNNING store which can collide with __set_current_state(TASK_RUNNING). * * However, with slightly different timing the wakeup TASK_RUNNING store can * also collide with the TASK_UNINTERRUPTIBLE store. Losing that store is not * a problem either because that will result in one extra go around the loop * and our @cond test will save the day. * * Also see the comments of try_to_wake_up(). */ #define __set_current_state(state_value) \ do { \ debug_normal_state_change((state_value)); \ WRITE_ONCE(current->__state, (state_value)); \ } while (0) #define set_current_state(state_value) \ do { \ debug_normal_state_change((state_value)); \ smp_store_mb(current->__state, (state_value)); \ } while (0) /* * set_special_state() should be used for those states when the blocking task * can not use the regular condition based wait-loop. In that case we must * serialize against wakeups such that any possible in-flight TASK_RUNNING * stores will not collide with our state change. */ #define set_special_state(state_value) \ do { \ unsigned long flags; /* may shadow */ \ \ raw_spin_lock_irqsave(¤t->pi_lock, flags); \ debug_special_state_change((state_value)); \ WRITE_ONCE(current->__state, (state_value)); \ raw_spin_unlock_irqrestore(¤t->pi_lock, flags); \ } while (0) /* * PREEMPT_RT specific variants for "sleeping" spin/rwlocks * * RT's spin/rwlock substitutions are state preserving. The state of the * task when blocking on the lock is saved in task_struct::saved_state and * restored after the lock has been acquired. These operations are * serialized by task_struct::pi_lock against try_to_wake_up(). Any non RT * lock related wakeups while the task is blocked on the lock are * redirected to operate on task_struct::saved_state to ensure that these * are not dropped. On restore task_struct::saved_state is set to * TASK_RUNNING so any wakeup attempt redirected to saved_state will fail. * * The lock operation looks like this: * * current_save_and_set_rtlock_wait_state(); * for (;;) { * if (try_lock()) * break; * raw_spin_unlock_irq(&lock->wait_lock); * schedule_rtlock(); * raw_spin_lock_irq(&lock->wait_lock); * set_current_state(TASK_RTLOCK_WAIT); * } * current_restore_rtlock_saved_state(); */ #define current_save_and_set_rtlock_wait_state() \ do { \ lockdep_assert_irqs_disabled(); \ raw_spin_lock(¤t->pi_lock); \ current->saved_state = current->__state; \ debug_rtlock_wait_set_state(); \ WRITE_ONCE(current->__state, TASK_RTLOCK_WAIT); \ raw_spin_unlock(¤t->pi_lock); \ } while (0); #define current_restore_rtlock_saved_state() \ do { \ lockdep_assert_irqs_disabled(); \ raw_spin_lock(¤t->pi_lock); \ debug_rtlock_wait_restore_state(); \ WRITE_ONCE(current->__state, current->saved_state); \ current->saved_state = TASK_RUNNING; \ raw_spin_unlock(¤t->pi_lock); \ } while (0); #define get_current_state() READ_ONCE(current->__state) /* Task command name length: */ #define TASK_COMM_LEN 16 extern void scheduler_tick(void); #define MAX_SCHEDULE_TIMEOUT LONG_MAX extern long schedule_timeout(long timeout); extern long schedule_timeout_interruptible(long timeout); extern long schedule_timeout_killable(long timeout); extern long schedule_timeout_uninterruptible(long timeout); extern long schedule_timeout_idle(long timeout); asmlinkage void schedule(void); extern void schedule_preempt_disabled(void); asmlinkage void preempt_schedule_irq(void); #ifdef CONFIG_PREEMPT_RT extern void schedule_rtlock(void); #endif extern int __must_check io_schedule_prepare(void); extern void io_schedule_finish(int token); extern long io_schedule_timeout(long timeout); extern void io_schedule(void); /** * struct prev_cputime - snapshot of system and user cputime * @utime: time spent in user mode * @stime: time spent in system mode * @lock: protects the above two fields * * Stores previous user/system time values such that we can guarantee * monotonicity. */ struct prev_cputime { #ifndef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE u64 utime; u64 stime; raw_spinlock_t lock; #endif }; /* * RHEL Notes: * Due to dependency of cputime.c code on the exact ordering of * vtime_state enum names, __GENKSYMS__ macro is used directly * here instead of RH_KABI*ENUM* macros. */ #ifndef __GENKSYMS__ enum vtime_state { /* Task is sleeping or running in a CPU with VTIME inactive: */ VTIME_INACTIVE = 0, /* Task is idle */ VTIME_IDLE, /* Task runs in kernelspace in a CPU with VTIME active: */ VTIME_SYS, /* Task runs in userspace in a CPU with VTIME active: */ VTIME_USER, /* Task runs as guests in a CPU with VTIME active: */ VTIME_GUEST, }; #else enum vtime_state { VTIME_INACTIVE = 0, VTIME_USER, VTIME_SYS, }; #endif struct vtime { seqcount_t seqcount; unsigned long long starttime; enum vtime_state state; RH_KABI_FILL_HOLE(unsigned int cpu) u64 utime; u64 stime; u64 gtime; }; #ifdef CONFIG_SMP extern struct root_domain def_root_domain; extern struct mutex sched_domains_mutex; #endif struct sched_info { #ifdef CONFIG_SCHED_INFO /* Cumulative counters: */ /* # of times we have run on this CPU: */ unsigned long pcount; /* Time spent waiting on a runqueue: */ unsigned long long run_delay; /* Timestamps: */ /* When did we last run on a CPU? */ unsigned long long last_arrival; /* When were we last queued to run? */ unsigned long long last_queued; #endif /* CONFIG_SCHED_INFO */ }; /* * Integer metrics need fixed point arithmetic, e.g., sched/fair * has a few: load, load_avg, util_avg, freq, and capacity. * * We define a basic fixed point arithmetic range, and then formalize * all these metrics based on that basic range. */ # define SCHED_FIXEDPOINT_SHIFT 10 # define SCHED_FIXEDPOINT_SCALE (1L << SCHED_FIXEDPOINT_SHIFT) /* Increase resolution of cpu_capacity calculations */ # define SCHED_CAPACITY_SHIFT SCHED_FIXEDPOINT_SHIFT # define SCHED_CAPACITY_SCALE (1L << SCHED_CAPACITY_SHIFT) struct load_weight { unsigned long weight; u32 inv_weight; }; /** * struct util_est - Estimation utilization of FAIR tasks * @enqueued: instantaneous estimated utilization of a task/cpu * @ewma: the Exponential Weighted Moving Average (EWMA) * utilization of a task * * Support data structure to track an Exponential Weighted Moving Average * (EWMA) of a FAIR task's utilization. New samples are added to the moving * average each time a task completes an activation. Sample's weight is chosen * so that the EWMA will be relatively insensitive to transient changes to the * task's workload. * * The enqueued attribute has a slightly different meaning for tasks and cpus: * - task: the task's util_avg at last task dequeue time * - cfs_rq: the sum of util_est.enqueued for each RUNNABLE task on that CPU * Thus, the util_est.enqueued of a task represents the contribution on the * estimated utilization of the CPU where that task is currently enqueued. * * Only for tasks we track a moving average of the past instantaneous * estimated utilization. This allows to absorb sporadic drops in utilization * of an otherwise almost periodic task. * * The UTIL_AVG_UNCHANGED flag is used to synchronize util_est with util_avg * updates. When a task is dequeued, its util_est should not be updated if its * util_avg has not been updated in the meantime. * This information is mapped into the MSB bit of util_est.enqueued at dequeue * time. Since max value of util_est.enqueued for a task is 1024 (PELT util_avg * for a task) it is safe to use MSB. */ struct util_est { unsigned int enqueued; unsigned int ewma; #define UTIL_EST_WEIGHT_SHIFT 2 #define UTIL_AVG_UNCHANGED 0x80000000 } __attribute__((__aligned__(sizeof(u64)))); /* * The load/runnable/util_avg accumulates an infinite geometric series * (see __update_load_avg_cfs_rq() in kernel/sched/pelt.c). * * [load_avg definition] * * load_avg = runnable% * scale_load_down(load) * * [runnable_avg definition] * * runnable_avg = runnable% * SCHED_CAPACITY_SCALE * * [util_avg definition] * * util_avg = running% * SCHED_CAPACITY_SCALE * * where runnable% is the time ratio that a sched_entity is runnable and * running% the time ratio that a sched_entity is running. * * For cfs_rq, they are the aggregated values of all runnable and blocked * sched_entities. * * The load/runnable/util_avg doesn't direcly factor frequency scaling and CPU * capacity scaling. The scaling is done through the rq_clock_pelt that is used * for computing those signals (see update_rq_clock_pelt()) * * N.B., the above ratios (runnable% and running%) themselves are in the * range of [0, 1]. To do fixed point arithmetics, we therefore scale them * to as large a range as necessary. This is for example reflected by * util_avg's SCHED_CAPACITY_SCALE. * * [Overflow issue] * * The 64-bit load_sum can have 4353082796 (=2^64/47742/88761) entities * with the highest load (=88761), always runnable on a single cfs_rq, * and should not overflow as the number already hits PID_MAX_LIMIT. * * For all other cases (including 32-bit kernels), struct load_weight's * weight will overflow first before we do, because: * * Max(load_avg) <= Max(load.weight) * * Then it is the load_weight's responsibility to consider overflow * issues. */ struct sched_avg { u64 last_update_time; u64 load_sum; u64 RH_KABI_RENAME(runnable_load_sum, runnable_sum); u32 util_sum; u32 period_contrib; unsigned long load_avg; unsigned long RH_KABI_RENAME(runnable_load_avg, runnable_avg); unsigned long util_avg; struct util_est util_est; } ____cacheline_aligned; struct sched_statistics { #ifdef CONFIG_SCHEDSTATS u64 wait_start; u64 wait_max; u64 wait_count; u64 wait_sum; u64 iowait_count; u64 iowait_sum; u64 sleep_start; u64 sleep_max; s64 sum_sleep_runtime; u64 block_start; u64 block_max; u64 exec_max; u64 slice_max; u64 nr_migrations_cold; u64 nr_failed_migrations_affine; u64 nr_failed_migrations_running; u64 nr_failed_migrations_hot; u64 nr_forced_migrations; u64 nr_wakeups; u64 nr_wakeups_sync; u64 nr_wakeups_migrate; u64 nr_wakeups_local; u64 nr_wakeups_remote; u64 nr_wakeups_affine; u64 nr_wakeups_affine_attempts; u64 nr_wakeups_passive; u64 nr_wakeups_idle; #endif }; struct sched_entity { /* For load-balancing: */ struct load_weight load; /* cached value of my_q->h_nr_running */ unsigned long runnable_weight; struct rb_node run_node; struct list_head group_node; unsigned int on_rq; u64 exec_start; u64 sum_exec_runtime; u64 vruntime; u64 prev_sum_exec_runtime; u64 nr_migrations; struct sched_statistics statistics; #ifdef CONFIG_FAIR_GROUP_SCHED int depth; struct sched_entity *parent; /* rq on which this entity is (to be) queued: */ struct cfs_rq *cfs_rq; /* rq "owned" by this entity/group: */ struct cfs_rq *my_q; #endif #ifdef CONFIG_SMP /* * Per entity load average tracking. * * Put into separate cache line so it does not * collide with read-mostly values above. */ struct sched_avg avg; #endif RH_KABI_RESERVE(1) RH_KABI_RESERVE(2) RH_KABI_RESERVE(3) RH_KABI_RESERVE(4) }; struct sched_rt_entity { struct list_head run_list; unsigned long timeout; unsigned long watchdog_stamp; unsigned int time_slice; unsigned short on_rq; unsigned short on_list; struct sched_rt_entity *back; #ifdef CONFIG_RT_GROUP_SCHED struct sched_rt_entity *parent; /* rq on which this entity is (to be) queued: */ struct rt_rq *rt_rq; /* rq "owned" by this entity/group: */ struct rt_rq *my_q; #endif } __randomize_layout; struct sched_dl_entity { struct rb_node rb_node; /* * Original scheduling parameters. Copied here from sched_attr * during sched_setattr(), they will remain the same until * the next sched_setattr(). */ u64 dl_runtime; /* Maximum runtime for each instance */ u64 dl_deadline; /* Relative deadline of each instance */ u64 dl_period; /* Separation of two instances (period) */ u64 dl_bw; /* dl_runtime / dl_period */ u64 dl_density; /* dl_runtime / dl_deadline */ /* * Actual scheduling parameters. Initialized with the values above, * they are continuously updated during task execution. Note that * the remaining runtime could be < 0 in case we are in overrun. */ s64 runtime; /* Remaining runtime for this instance */ u64 deadline; /* Absolute deadline for this instance */ unsigned int flags; /* Specifying the scheduler behaviour */ /* * Some bool flags: * * @dl_throttled tells if we exhausted the runtime. If so, the * task has to wait for a replenishment to be performed at the * next firing of dl_timer. * * @dl_yielded tells if task gave up the CPU before consuming * all its available runtime during the last job. * * @dl_non_contending tells if the task is inactive while still * contributing to the active utilization. In other words, it * indicates if the inactive timer has been armed and its handler * has not been executed yet. This flag is useful to avoid race * conditions between the inactive timer handler and the wakeup * code. * * @dl_overrun tells if the task asked to be informed about runtime * overruns. */ unsigned int dl_throttled : 1; RH_KABI_DEPRECATE(unsigned int, dl_boosted : 1) unsigned int dl_yielded : 1; unsigned int dl_non_contending : 1; unsigned int dl_overrun : 1; /* * Bandwidth enforcement timer. Each -deadline task has its * own bandwidth to be enforced, thus we need one timer per task. */ struct hrtimer dl_timer; /* * Inactive timer, responsible for decreasing the active utilization * at the "0-lag time". When a -deadline task blocks, it contributes * to GRUB's active utilization until the "0-lag time", hence a * timer is needed to decrease the active utilization at the correct * time. */ struct hrtimer inactive_timer; }; union rcu_special { struct { u8 blocked; u8 need_qs; u8 exp_hint; /* Hint for performance. */ u8 need_mb; /* Readers need smp_mb(). */ } b; /* Bits. */ u32 s; /* Set of bits. */ }; enum perf_event_task_context { perf_invalid_context = -1, perf_hw_context = 0, perf_sw_context, perf_nr_task_contexts, }; struct wake_q_node { struct wake_q_node *next; }; struct kmap_ctrl { #ifdef CONFIG_KMAP_LOCAL int idx; pte_t pteval[KM_MAX_IDX]; #endif }; struct task_struct; struct task_struct_rh { /* Empty if CONFIG_POSIX_CPUTIMERS=n */ struct posix_cputimers posix_cputimers; /* struct vtime->cpu */ RH_KABI_DEPRECATE(unsigned int, vtime_cpu) u64 parent_exec_id; u64 self_exec_id; #ifdef CONFIG_COMPACTION struct capture_control *capture_control; #endif #ifdef CONFIG_X86_MCE void __user *mce_vaddr; u64 mce_addr; __u64 mce_ripv : 1, mce_whole_page : 1, __mce_reserved : 62; struct callback_head mce_kill_me; int mce_count; #endif /* pointer back to the main task_struct */ struct task_struct *task_struct; int trc_reader_nesting; int trc_ipi_to_cpu; union rcu_special trc_reader_special; bool trc_reader_checked; struct list_head trc_holdout_list; #ifdef CONFIG_X86_64 /* * Protection Keys Register for Userspace. Loaded immediately on * context switch. Store it in thread_struct to avoid a lookup in * the tasks's FPU xstate buffer. This value is only valid when a * task is scheduled out. For 'current' the authoritative source of * PKRU is the hardware itself. */ u32 pkru; #endif #if IS_ENABLED(CONFIG_KUNIT) struct kunit *kunit_test; #endif struct timer_list oom_reaper_timer; }; struct task_struct { #ifdef CONFIG_THREAD_INFO_IN_TASK /* * For reasons of header soup (see current_thread_info()), this * must be the first element of task_struct. */ struct thread_info thread_info; #endif RH_KABI_REPLACE_SPLIT(volatile long state, unsigned int __state #ifdef CONFIG_PREEMPT_RT /* saved state for "spinlock sleepers" */ ,unsigned int saved_state #endif ) /* * This begins the randomizable portion of task_struct. Only * scheduling-critical items should be added above here. */ randomized_struct_fields_start void *stack; RH_KABI_REPLACE(atomic_t usage, refcount_t usage) /* Per task flags (PF_*), defined further below: */ unsigned int flags; unsigned int ptrace; #ifdef CONFIG_SMP RH_KABI_DEPRECATE(struct llist_node, wake_entry) int on_cpu; #ifdef CONFIG_THREAD_INFO_IN_TASK /* Current CPU: */ unsigned int cpu; #endif unsigned int wakee_flips; unsigned long wakee_flip_decay_ts; struct task_struct *last_wakee; /* * recent_used_cpu is initially set as the last CPU used by a task * that wakes affine another task. Waker/wakee relationships can * push tasks around a CPU where each wakeup moves to the next one. * Tracking a recently used CPU allows a quick search for a recently * used CPU that may be idle. */ int recent_used_cpu; int wake_cpu; #endif int on_rq; int prio; int static_prio; int normal_prio; unsigned int rt_priority; const struct sched_class *sched_class; struct sched_entity se; struct sched_rt_entity rt; #ifdef CONFIG_CGROUP_SCHED struct task_group *sched_task_group; #endif struct sched_dl_entity dl; #ifdef CONFIG_PREEMPT_NOTIFIERS /* List of struct preempt_notifier: */ struct hlist_head preempt_notifiers; #endif #ifdef CONFIG_BLK_DEV_IO_TRACE unsigned int btrace_seq; #endif unsigned int policy; int nr_cpus_allowed; #ifdef CONFIG_SMP RH_KABI_FILL_HOLE(unsigned short migration_disabled) #endif RH_KABI_FILL_HOLE(unsigned short migration_flags) RH_KABI_RENAME(cpumask_t cpus_allowed, cpumask_t cpus_mask); #ifdef CONFIG_PREEMPT_RCU int rcu_read_lock_nesting; union rcu_special rcu_read_unlock_special; struct list_head rcu_node_entry; struct rcu_node *rcu_blocked_node; #endif /* #ifdef CONFIG_PREEMPT_RCU */ #ifdef CONFIG_TASKS_RCU unsigned long rcu_tasks_nvcsw; u8 rcu_tasks_holdout; u8 rcu_tasks_idx; int rcu_tasks_idle_cpu; struct list_head rcu_tasks_holdout_list; #endif /* #ifdef CONFIG_TASKS_RCU */ #if 0 /* RHEL: moved to task_struct_rh */ #ifdef CONFIG_TASKS_TRACE_RCU int trc_reader_nesting; int trc_ipi_to_cpu; union rcu_special trc_reader_special; bool trc_reader_checked; struct list_head trc_holdout_list; #endif /* #ifdef CONFIG_TASKS_TRACE_RCU */ #endif /* RHEL */ struct sched_info sched_info; struct list_head tasks; #ifdef CONFIG_SMP struct plist_node pushable_tasks; struct rb_node pushable_dl_tasks; #endif struct mm_struct *mm; struct mm_struct *active_mm; /* Per-thread vma caching: */ struct vmacache vmacache; #ifdef SPLIT_RSS_COUNTING struct task_rss_stat rss_stat; #endif int exit_state; int exit_code; int exit_signal; /* The signal sent when the parent dies: */ int pdeath_signal; /* JOBCTL_*, siglock protected: */ unsigned long jobctl; /* Used for emulating ABI behavior of previous Linux versions: */ unsigned int personality; /* Scheduler bits, serialized by scheduler locks: */ unsigned sched_reset_on_fork:1; unsigned sched_contributes_to_load:1; unsigned sched_migrated:1; RH_KABI_DEPRECATE(unsigned, sched_remote_wakeup:1) #ifdef CONFIG_PSI RH_KABI_FILL_HOLE(unsigned sched_psi_wake_requeue:1) #endif /* Save user-dumpable when mm goes away */ RH_KABI_FILL_HOLE(unsigned user_dumpable:1) /* Force alignment to the next boundary: */ unsigned :0; /* Unserialized, strictly 'current' */ /* Bit to tell LSMs we're in execve(): */ unsigned in_execve:1; unsigned in_iowait:1; #ifndef TIF_RESTORE_SIGMASK unsigned restore_sigmask:1; #endif #ifdef CONFIG_MEMCG unsigned RH_KABI_RENAME(memcg_may_oom, in_user_fault):1; #ifdef CONFIG_MEMCG_KMEM RH_KABI_DEPRECATE(unsigned, memcg_kmem_skip_account:1) #endif #endif #ifdef CONFIG_COMPAT_BRK unsigned brk_randomized:1; #endif #ifdef CONFIG_CGROUPS /* disallow userland-initiated cgroup migration */ unsigned no_cgroup_migration:1; #endif #ifdef CONFIG_BLK_CGROUP unsigned use_memdelay:1; #endif #ifdef CONFIG_CGROUPS /* task is frozen/stopped (used by the cgroup freezer) */ RH_KABI_FILL_HOLE(unsigned frozen:1) #endif /* * This field must not be in the scheduler word above due to wakelist * queueing no longer being serialized by p->on_cpu. However: * * p->XXX = X; ttwu() * schedule() if (p->on_rq && ..) // false * smp_mb__after_spinlock(); if (smp_load_acquire(&p->on_cpu) && //true * deactivate_task() ttwu_queue_wakelist()) * p->on_rq = 0; p->sched_remote_wakeup = Y; * * guarantees all stores of 'current' are visible before * ->sched_remote_wakeup gets used, so it can be in this word. */ RH_KABI_FILL_HOLE(unsigned sched_remote_wakeup:1) #ifdef CONFIG_PSI /* Stalled due to lack of memory */ RH_KABI_FILL_HOLE(unsigned in_memstall:1) #endif #ifdef CONFIG_PAGE_OWNER /* Used by page_owner=on to detect recursion in page tracking. */ RH_KABI_FILL_HOLE(unsigned in_page_owner:1) #endif #ifdef CONFIG_IOMMU_SVA RH_KABI_FILL_HOLE(unsigned pasid_activated:1) #endif #ifdef CONFIG_TASK_DELAY_ACCT /* delay due to memory thrashing */ RH_KABI_FILL_HOLE(unsigned in_thrashing:1) #endif unsigned long atomic_flags; /* Flags requiring atomic access. */ struct restart_block restart_block; pid_t pid; pid_t tgid; #if defined(CONFIG_STACKPROTECTOR) && !defined(CONFIG_PPC64) /* Canary value for the -fstack-protector GCC feature: */ unsigned long stack_canary; #endif /* * Pointers to the (original) parent process, youngest child, younger sibling, * older sibling, respectively. (p->father can be replaced with * p->real_parent->pid) */ /* Real parent process: */ struct task_struct __rcu *real_parent; /* Recipient of SIGCHLD, wait4() reports: */ struct task_struct __rcu *parent; /* * Children/sibling form the list of natural children: */ struct list_head children; struct list_head sibling; struct task_struct *group_leader; /* * 'ptraced' is the list of tasks this task is using ptrace() on. * * This includes both natural children and PTRACE_ATTACH targets. * 'ptrace_entry' is this task's link on the p->parent->ptraced list. */ struct list_head ptraced; struct list_head ptrace_entry; /* PID/PID hash table linkage. */ #ifdef __GENKSYMS__ struct pid_link pids[PIDTYPE_MAX]; #else /* * RHEL8: For backward compatibility, we need to maintain the pid * pointers in pid_link. The new thread_pid field is equivalent to * pids[PIDTYPE_PID].pid and so is put at the same offset. The * hlist_node in pid_link can be reused as they are not used by * others. */ /* Used by memcontrol for targeted memcg charge: */ struct mem_cgroup *active_memcg; #if defined(CONFIG_STACKPROTECTOR) && defined(CONFIG_PPC64) /* powerpc canary value for the -fstack-protector GCC feature: */ RH_KABI_USE(2, unsigned long stack_canary) #else long rh_reserved2; #endif struct pid *thread_pid; RH_KABI_USE(3, const cpumask_t *cpus_ptr) struct task_struct_rh *task_struct_rh; struct pid *rh_pgid; /* RH KABI: using rh_reserved5 instead of placing this at the end of sched_dl_entity */ #ifdef CONFIG_RT_MUTEXES /* * Priority Inheritance. When a DEADLINE scheduling entity is boosted * pi_se points to the donor, otherwise points to the dl_se it belongs * to (the original one/itself). */ struct sched_dl_entity *pi_se; #else long rh_reserved5; #endif RH_KABI_USE(6, void *migration_pending) struct pid *rh_sid; #endif struct list_head thread_group; struct list_head thread_node; struct completion *vfork_done; /* CLONE_CHILD_SETTID: */ int __user *set_child_tid; /* CLONE_CHILD_CLEARTID: */ int __user *clear_child_tid; u64 utime; u64 stime; #ifdef CONFIG_ARCH_HAS_SCALED_CPUTIME u64 utimescaled; u64 stimescaled; #endif u64 gtime; struct prev_cputime prev_cputime; #ifdef CONFIG_VIRT_CPU_ACCOUNTING_GEN struct vtime vtime; #endif #ifdef CONFIG_NO_HZ_FULL atomic_t tick_dep_mask; #endif /* Context switch counts: */ unsigned long nvcsw; unsigned long nivcsw; /* Monotonic time in nsecs: */ u64 start_time; /* Boot based time in nsecs: */ u64 real_start_time; /* MM fault and swap info: this can arguably be seen as either mm-specific or thread-specific: */ unsigned long min_flt; unsigned long maj_flt; RH_KABI_REPLACE_SPLIT(struct task_cputime cputime_expires, struct __call_single_node wake_entry) #ifdef CONFIG_FUTEX RH_KABI_REPLACE_SPLIT(struct list_head cpu_timers[3], struct mutex futex_exit_mutex, unsigned int futex_state) #endif /* Process credentials: */ /* Tracer's credentials at attach: */ const struct cred __rcu *ptracer_cred; /* Objective and real subjective task credentials (COW): */ const struct cred __rcu *real_cred; /* Effective (overridable) subjective task credentials (COW): */ const struct cred __rcu *cred; /* * executable name, excluding path. * * - normally initialized setup_new_exec() * - access it with [gs]et_task_comm() * - lock it with task_lock() */ char comm[TASK_COMM_LEN]; struct nameidata *nameidata; #ifdef CONFIG_SYSVIPC struct sysv_sem sysvsem; struct sysv_shm sysvshm; #endif #ifdef CONFIG_DETECT_HUNG_TASK unsigned long last_switch_count; #endif /* Filesystem information: */ struct fs_struct *fs; /* Open file information: */ struct files_struct *files; /* Namespaces: */ struct nsproxy *nsproxy; /* Signal handlers: */ struct signal_struct *signal; struct sighand_struct *sighand; sigset_t blocked; sigset_t real_blocked; /* Restored if set_restore_sigmask() was used: */ sigset_t saved_sigmask; struct sigpending pending; unsigned long sas_ss_sp; size_t sas_ss_size; unsigned int sas_ss_flags; struct callback_head *task_works; #ifdef CONFIG_AUDIT #ifdef CONFIG_AUDITSYSCALL struct audit_context *audit_context; #endif kuid_t loginuid; unsigned int sessionid; #endif struct seccomp seccomp; /* Thread group tracking: */ RH_KABI_DEPRECATE(u32, parent_exec_id) RH_KABI_DEPRECATE(u32, self_exec_id) /* Protection against (de-)allocation: mm, files, fs, tty, keyrings, mems_allowed, mempolicy: */ spinlock_t alloc_lock; /* Protection of the PI data structures: */ raw_spinlock_t pi_lock; struct wake_q_node wake_q; #ifdef CONFIG_RT_MUTEXES /* PI waiters blocked on a rt_mutex held by this task: */ struct rb_root_cached pi_waiters; /* Updated under owner's pi_lock and rq lock */ struct task_struct *pi_top_task; /* Deadlock detection and priority inheritance handling: */ struct rt_mutex_waiter *pi_blocked_on; #endif #ifdef CONFIG_DEBUG_MUTEXES /* Mutex deadlock detection: */ struct mutex_waiter *blocked_on; #endif #ifdef CONFIG_DEBUG_ATOMIC_SLEEP int non_block_count; #endif #ifdef CONFIG_TRACE_IRQFLAGS struct irqtrace_events irqtrace; unsigned int hardirq_threaded; u64 hardirq_chain_key; int softirqs_enabled; int softirq_context; int irq_config; #endif #ifdef CONFIG_LOCKDEP # define MAX_LOCK_DEPTH 48UL u64 curr_chain_key; int lockdep_depth; unsigned int lockdep_recursion; struct held_lock held_locks[MAX_LOCK_DEPTH]; #endif #ifdef CONFIG_UBSAN unsigned int in_ubsan; #endif /* Journalling filesystem info: */ void *journal_info; /* Stacked block device info: */ struct bio_list *bio_list; #ifdef CONFIG_BLOCK /* Stack plugging: */ struct blk_plug *plug; #endif /* VM state: */ struct reclaim_state *reclaim_state; struct backing_dev_info *backing_dev_info; struct io_context *io_context; /* Ptrace state: */ unsigned long ptrace_message; RH_KABI_REPLACE(siginfo_t *last_siginfo, kernel_siginfo_t *last_siginfo) struct task_io_accounting ioac; #ifdef CONFIG_TASK_XACCT /* Accumulated RSS usage: */ u64 acct_rss_mem1; /* Accumulated virtual memory usage: */ u64 acct_vm_mem1; /* stime + utime since last update: */ u64 acct_timexpd; #endif #ifdef CONFIG_CPUSETS /* Protected by ->alloc_lock: */ nodemask_t mems_allowed; /* Sequence number to catch updates: */ RH_KABI_REPLACE(seqcount_t mems_allowed_seq, seqcount_spinlock_t mems_allowed_seq) int cpuset_mem_spread_rotor; int cpuset_slab_spread_rotor; #endif #ifdef CONFIG_PSI /* Pressure stall state */ RH_KABI_FILL_HOLE(unsigned int psi_flags) #endif #ifdef CONFIG_CGROUPS /* Control Group info protected by css_set_lock: */ struct css_set __rcu *cgroups; /* cg_list protected by css_set_lock and tsk->alloc_lock: */ struct list_head cg_list; #endif #ifdef CONFIG_X86_CPU_RESCTRL u32 closid; u32 rmid; #endif #ifdef CONFIG_FUTEX struct robust_list_head __user *robust_list; #ifdef CONFIG_COMPAT struct compat_robust_list_head __user *compat_robust_list; #endif struct list_head pi_state_list; struct futex_pi_state *pi_state_cache; #endif #ifdef CONFIG_PERF_EVENTS struct perf_event_context *perf_event_ctxp[perf_nr_task_contexts]; struct mutex perf_event_mutex; struct list_head perf_event_list; #endif #ifdef CONFIG_DEBUG_PREEMPT unsigned long preempt_disable_ip; #endif #ifdef CONFIG_NUMA /* Protected by alloc_lock: */ struct mempolicy *mempolicy; short il_prev; short pref_node_fork; #endif #ifdef CONFIG_NUMA_BALANCING int numa_scan_seq; unsigned int numa_scan_period; unsigned int numa_scan_period_max; int numa_preferred_nid; unsigned long numa_migrate_retry; /* Migration stamp: */ u64 node_stamp; u64 last_task_numa_placement; u64 last_sum_exec_runtime; struct callback_head numa_work; struct list_head numa_entry; /* * This pointer is only modified for current in syscall and * pagefault context (and for tasks being destroyed), so it can be read * from any of the following contexts: * - RCU read-side critical section * - current->numa_group from everywhere * - task's runqueue locked, task not running */ struct numa_group __rcu *numa_group; /* * numa_faults is an array split into four regions: * faults_memory, faults_cpu, faults_memory_buffer, faults_cpu_buffer * in this precise order. * * faults_memory: Exponential decaying average of faults on a per-node * basis. Scheduling placement decisions are made based on these * counts. The values remain static for the duration of a PTE scan. * faults_cpu: Track the nodes the process was running on when a NUMA * hinting fault was incurred. * faults_memory_buffer and faults_cpu_buffer: Record faults per node * during the current scan window. When the scan completes, the counts * in faults_memory and faults_cpu decay and these values are copied. */ unsigned long *numa_faults; unsigned long total_numa_faults; /* * numa_faults_locality tracks if faults recorded during the last * scan window were remote/local or failed to migrate. The task scan * period is adapted based on the locality of the faults with different * weights depending on whether they were shared or private faults */ unsigned long numa_faults_locality[3]; unsigned long numa_pages_migrated; #endif /* CONFIG_NUMA_BALANCING */ #ifdef CONFIG_RSEQ struct rseq __user *rseq; u32 rseq_len; u32 rseq_sig; /* * RmW on rseq_event_mask must be performed atomically * with respect to preemption. */ unsigned long rseq_event_mask; #endif struct tlbflush_unmap_batch tlb_ubc; RH_KABI_REPLACE(struct rcu_head rcu, union { refcount_t rcu_users; struct rcu_head rcu; }) /* Cache last used pipe for splice(): */ struct pipe_inode_info *splice_pipe; struct page_frag task_frag; #ifdef CONFIG_TASK_DELAY_ACCT struct task_delay_info *delays; #endif #ifdef CONFIG_FAULT_INJECTION int make_it_fail; unsigned int fail_nth; #endif /* * When (nr_dirtied >= nr_dirtied_pause), it's time to call * balance_dirty_pages() for a dirty throttling pause: */ int nr_dirtied; int nr_dirtied_pause; /* Start of a write-and-pause period: */ unsigned long dirty_paused_when; #ifdef CONFIG_LATENCYTOP int latency_record_count; struct latency_record latency_record[LT_SAVECOUNT]; #endif /* * Time slack values; these are used to round up poll() and * select() etc timeout values. These are in nanoseconds. */ u64 timer_slack_ns; u64 default_timer_slack_ns; #if defined(CONFIG_KASAN_GENERIC) || defined(CONFIG_KASAN_SW_TAGS) unsigned int kasan_depth; #endif #ifdef CONFIG_KCSAN struct kcsan_ctx kcsan_ctx; #endif #ifdef CONFIG_FUNCTION_GRAPH_TRACER /* Index of current stored address in ret_stack: */ int curr_ret_stack; /* Stack of return addresses for return function tracing: */ struct ftrace_ret_stack *ret_stack; /* Timestamp for last schedule: */ unsigned long long ftrace_timestamp; /* * Number of functions that haven't been traced * because of depth overrun: */ atomic_t trace_overrun; /* Pause tracing: */ atomic_t tracing_graph_pause; #endif #ifdef CONFIG_TRACING /* State flags for use by tracers: */ unsigned long trace; /* Bitmask and counter of trace recursion: */ unsigned long trace_recursion; #endif /* CONFIG_TRACING */ #ifdef CONFIG_KCOV /* Coverage collection mode enabled for this task (0 if disabled): */ unsigned int kcov_mode; /* Size of the kcov_area: */ unsigned int kcov_size; /* Buffer for coverage collection: */ void *kcov_area; /* KCOV descriptor wired with this task or NULL: */ struct kcov *kcov; #endif #ifdef CONFIG_MEMCG struct mem_cgroup *memcg_in_oom; gfp_t memcg_oom_gfp_mask; int memcg_oom_order; /* Number of pages to reclaim on returning to userland: */ unsigned int memcg_nr_pages_over_high; #endif #ifdef CONFIG_BLK_CGROUP struct request_queue *throttle_queue; #endif #ifdef CONFIG_UPROBES struct uprobe_task *utask; #endif #if defined(CONFIG_BCACHE) || defined(CONFIG_BCACHE_MODULE) unsigned int sequential_io; unsigned int sequential_io_avg; #endif RH_KABI_FILL_HOLE(struct kmap_ctrl kmap_ctrl) #ifdef CONFIG_DEBUG_ATOMIC_SLEEP unsigned long task_state_change; # ifdef CONFIG_PREEMPT_RT unsigned long saved_state_change; # endif #endif int pagefault_disabled; #ifdef CONFIG_MMU struct task_struct *oom_reaper_list; #endif #ifdef CONFIG_VMAP_STACK struct vm_struct *stack_vm_area; #endif #ifdef CONFIG_THREAD_INFO_IN_TASK /* A live task holds one reference: */ RH_KABI_REPLACE(atomic_t stack_refcount, refcount_t stack_refcount) #endif #ifdef CONFIG_LIVEPATCH int patch_state; #endif #ifdef CONFIG_SECURITY /* Used by LSM modules for access restriction: */ void *security; #endif /* * New fields for task_struct should be added above here, so that * they are included in the randomized portion of task_struct. */ randomized_struct_fields_end /* * RHEL8: With PIDTYPE_MAX equals 4, the following fields will * occupy 8 long's. There are some rh_reserved* fields up near * the pid_link structure that can be reused for other purpose. */ /* PID/PID hash table linkage. */ RH_KABI_USE(1, 2, 3, 4, 5, 6, 7, 8, struct hlist_node pid_links[PIDTYPE_MAX]) /* CPU-specific state of this task: */ struct thread_struct thread; /* * WARNING: on x86, 'thread_struct' contains a variable-sized * structure. It *MUST* be at the end of 'task_struct'. * * Do not put anything below here! */ /* * RHEL: There is a task_struct_rh that can be safely used to add * elements to. task_struct, and task_struct_rh are only allocated * within the kernel. */ }; static inline struct pid *task_pid(struct task_struct *task) { return task->thread_pid; } /* * the helpers to get the task's different pids as they are seen * from various namespaces * * task_xid_nr() : global id, i.e. the id seen from the init namespace; * task_xid_vnr() : virtual id, i.e. the id seen from the pid namespace of * current. * task_xid_nr_ns() : id seen from the ns specified; * * see also pid_nr() etc in include/linux/pid.h */ pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type, struct pid_namespace *ns); static inline pid_t task_pid_nr(struct task_struct *tsk) { return tsk->pid; } static inline pid_t task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) { return __task_pid_nr_ns(tsk, PIDTYPE_PID, ns); } static inline pid_t task_pid_vnr(struct task_struct *tsk) { return __task_pid_nr_ns(tsk, PIDTYPE_PID, NULL); } static inline pid_t task_tgid_nr(struct task_struct *tsk) { return tsk->tgid; } /** * pid_alive - check that a task structure is not stale * @p: Task structure to be checked. * * Test if a process is not yet dead (at most zombie state) * If pid_alive fails, then pointers within the task structure * can be stale and must not be dereferenced. * * Return: 1 if the process is alive. 0 otherwise. */ static inline int pid_alive(const struct task_struct *p) { return p->thread_pid != NULL; } static inline pid_t task_pgrp_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) { return __task_pid_nr_ns(tsk, PIDTYPE_PGID, ns); } static inline pid_t task_pgrp_vnr(struct task_struct *tsk) { return __task_pid_nr_ns(tsk, PIDTYPE_PGID, NULL); } static inline pid_t task_session_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) { return __task_pid_nr_ns(tsk, PIDTYPE_SID, ns); } static inline pid_t task_session_vnr(struct task_struct *tsk) { return __task_pid_nr_ns(tsk, PIDTYPE_SID, NULL); } static inline pid_t task_tgid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) { return __task_pid_nr_ns(tsk, PIDTYPE_TGID, ns); } static inline pid_t task_tgid_vnr(struct task_struct *tsk) { return __task_pid_nr_ns(tsk, PIDTYPE_TGID, NULL); } static inline pid_t task_ppid_nr_ns(const struct task_struct *tsk, struct pid_namespace *ns) { pid_t pid = 0; rcu_read_lock(); if (pid_alive(tsk)) pid = task_tgid_nr_ns(rcu_dereference(tsk->real_parent), ns); rcu_read_unlock(); return pid; } static inline pid_t task_ppid_nr(const struct task_struct *tsk) { return task_ppid_nr_ns(tsk, &init_pid_ns); } /* Obsolete, do not use: */ static inline pid_t task_pgrp_nr(struct task_struct *tsk) { return task_pgrp_nr_ns(tsk, &init_pid_ns); } #define TASK_REPORT_IDLE (TASK_REPORT + 1) #define TASK_REPORT_MAX (TASK_REPORT_IDLE << 1) static inline unsigned int task_state_index(struct task_struct *tsk) { unsigned int tsk_state = READ_ONCE(tsk->__state); unsigned int state = (tsk_state | tsk->exit_state) & TASK_REPORT; BUILD_BUG_ON_NOT_POWER_OF_2(TASK_REPORT_MAX); if (tsk_state == TASK_IDLE) state = TASK_REPORT_IDLE; return fls(state); } static inline char task_index_to_char(unsigned int state) { static const char state_char[] = "RSDTtXZPI"; BUILD_BUG_ON(1 + ilog2(TASK_REPORT_MAX) != sizeof(state_char) - 1); return state_char[state]; } static inline char task_state_to_char(struct task_struct *tsk) { return task_index_to_char(task_state_index(tsk)); } /** * is_global_init - check if a task structure is init. Since init * is free to have sub-threads we need to check tgid. * @tsk: Task structure to be checked. * * Check if a task structure is the first user space task the kernel created. * * Return: 1 if the task structure is init. 0 otherwise. */ static inline int is_global_init(struct task_struct *tsk) { return task_tgid_nr(tsk) == 1; } extern struct pid *cad_pid; /* * Per process flags */ #define PF_IDLE 0x00000002 /* I am an IDLE thread */ #define PF_EXITING 0x00000004 /* Getting shut down */ #define PF_VCPU 0x00000010 /* I'm a virtual CPU */ #define PF_WQ_WORKER 0x00000020 /* I'm a workqueue worker */ #define PF_FORKNOEXEC 0x00000040 /* Forked but didn't exec */ #define PF_MCE_PROCESS 0x00000080 /* Process policy on mce errors */ #define PF_SUPERPRIV 0x00000100 /* Used super-user privileges */ #define PF_DUMPCORE 0x00000200 /* Dumped core */ #define PF_SIGNALED 0x00000400 /* Killed by a signal */ #define PF_MEMALLOC 0x00000800 /* Allocating memory */ #define PF_NPROC_EXCEEDED 0x00001000 /* set_user() noticed that RLIMIT_NPROC was exceeded */ #define PF_USED_MATH 0x00002000 /* If unset the fpu must be initialized before use */ #define PF_NOFREEZE 0x00008000 /* This thread should not be frozen */ #define PF_FROZEN 0x00010000 /* Frozen for system suspend */ #define PF_KSWAPD 0x00020000 /* I am kswapd */ #define PF_MEMALLOC_NOFS 0x00040000 /* All allocation requests will inherit GFP_NOFS */ #define PF_MEMALLOC_NOIO 0x00080000 /* All allocation requests will inherit GFP_NOIO */ #define PF_LOCAL_THROTTLE 0x00100000 /* Throttle writes only against the bdi I write to, * I am cleaning dirty pages from some other bdi. */ #define PF_KTHREAD 0x00200000 /* I am a kernel thread */ #define PF_RANDOMIZE 0x00400000 /* Randomize virtual address space */ #define PF_SWAPWRITE 0x00800000 /* Allowed to write to swap */ #define PF_NO_SETAFFINITY 0x04000000 /* Userland is not allowed to meddle with cpus_mask */ #define PF_MCE_EARLY 0x08000000 /* Early kill for mce process policy */ #define PF_MEMALLOC_PIN 0x10000000 /* Allocation context constrained to zones which allow long term pinning. */ #define PF_IO_WORKER 0x20000000 /* Task is an IO worker */ #define PF_MUTEX_TESTER 0x20000000 /* Thread belongs to the rt mutex tester */ #define PF_FREEZER_SKIP 0x40000000 /* Freezer should not count it as freezable */ #define PF_SUSPEND_TASK 0x80000000 /* This thread called freeze_processes() and should not be frozen */ /* * Only the _current_ task can read/write to tsk->flags, but other * tasks can access tsk->flags in readonly mode for example * with tsk_used_math (like during threaded core dumping). * There is however an exception to this rule during ptrace * or during fork: the ptracer task is allowed to write to the * child->flags of its traced child (same goes for fork, the parent * can write to the child->flags), because we're guaranteed the * child is not running and in turn not changing child->flags * at the same time the parent does it. */ #define clear_stopped_child_used_math(child) do { (child)->flags &= ~PF_USED_MATH; } while (0) #define set_stopped_child_used_math(child) do { (child)->flags |= PF_USED_MATH; } while (0) #define clear_used_math() clear_stopped_child_used_math(current) #define set_used_math() set_stopped_child_used_math(current) #define conditional_stopped_child_used_math(condition, child) \ do { (child)->flags &= ~PF_USED_MATH, (child)->flags |= (condition) ? PF_USED_MATH : 0; } while (0) #define conditional_used_math(condition) conditional_stopped_child_used_math(condition, current) #define copy_to_stopped_child_used_math(child) \ do { (child)->flags &= ~PF_USED_MATH, (child)->flags |= current->flags & PF_USED_MATH; } while (0) /* NOTE: this will return 0 or PF_USED_MATH, it will never return 1 */ #define tsk_used_math(p) ((p)->flags & PF_USED_MATH) #define used_math() tsk_used_math(current) static __always_inline bool is_percpu_thread(void) { #ifdef CONFIG_SMP return (current->flags & PF_NO_SETAFFINITY) && (current->nr_cpus_allowed == 1); #else return true; #endif } /* Per-process atomic flags. */ #define PFA_NO_NEW_PRIVS 0 /* May not gain new privileges. */ #define PFA_SPREAD_PAGE 1 /* Spread page cache over cpuset */ #define PFA_SPREAD_SLAB 2 /* Spread some slab caches over cpuset */ #define PFA_SPEC_SSB_DISABLE 3 /* Speculative Store Bypass disabled */ #define PFA_SPEC_SSB_FORCE_DISABLE 4 /* Speculative Store Bypass force disabled*/ #define PFA_SPEC_IB_DISABLE 5 /* Indirect branch speculation restricted */ #define PFA_SPEC_IB_FORCE_DISABLE 6 /* Indirect branch speculation permanently restricted */ #define PFA_SPEC_SSB_NOEXEC 7 /* Speculative Store Bypass clear on execve() */ #define TASK_PFA_TEST(name, func) \ static inline bool task_##func(struct task_struct *p) \ { return test_bit(PFA_##name, &p->atomic_flags); } #define TASK_PFA_SET(name, func) \ static inline void task_set_##func(struct task_struct *p) \ { set_bit(PFA_##name, &p->atomic_flags); } #define TASK_PFA_CLEAR(name, func) \ static inline void task_clear_##func(struct task_struct *p) \ { clear_bit(PFA_##name, &p->atomic_flags); } TASK_PFA_TEST(NO_NEW_PRIVS, no_new_privs) TASK_PFA_SET(NO_NEW_PRIVS, no_new_privs) TASK_PFA_TEST(SPREAD_PAGE, spread_page) TASK_PFA_SET(SPREAD_PAGE, spread_page) TASK_PFA_CLEAR(SPREAD_PAGE, spread_page) TASK_PFA_TEST(SPREAD_SLAB, spread_slab) TASK_PFA_SET(SPREAD_SLAB, spread_slab) TASK_PFA_CLEAR(SPREAD_SLAB, spread_slab) TASK_PFA_TEST(SPEC_SSB_DISABLE, spec_ssb_disable) TASK_PFA_SET(SPEC_SSB_DISABLE, spec_ssb_disable) TASK_PFA_CLEAR(SPEC_SSB_DISABLE, spec_ssb_disable) TASK_PFA_TEST(SPEC_SSB_NOEXEC, spec_ssb_noexec) TASK_PFA_SET(SPEC_SSB_NOEXEC, spec_ssb_noexec) TASK_PFA_CLEAR(SPEC_SSB_NOEXEC, spec_ssb_noexec) TASK_PFA_TEST(SPEC_SSB_FORCE_DISABLE, spec_ssb_force_disable) TASK_PFA_SET(SPEC_SSB_FORCE_DISABLE, spec_ssb_force_disable) TASK_PFA_TEST(SPEC_IB_DISABLE, spec_ib_disable) TASK_PFA_SET(SPEC_IB_DISABLE, spec_ib_disable) TASK_PFA_CLEAR(SPEC_IB_DISABLE, spec_ib_disable) TASK_PFA_TEST(SPEC_IB_FORCE_DISABLE, spec_ib_force_disable) TASK_PFA_SET(SPEC_IB_FORCE_DISABLE, spec_ib_force_disable) static inline void current_restore_flags(unsigned long orig_flags, unsigned long flags) { current->flags &= ~flags; current->flags |= orig_flags & flags; } extern int cpuset_cpumask_can_shrink(const struct cpumask *cur, const struct cpumask *trial); extern int task_can_attach(struct task_struct *p); extern int dl_bw_alloc(int cpu, u64 dl_bw); extern void dl_bw_free(int cpu, u64 dl_bw); #ifdef CONFIG_SMP extern void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask); extern int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask); #else static inline void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask) { } static inline int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask) { if (!cpumask_test_cpu(0, new_mask)) return -EINVAL; return 0; } #endif extern int yield_to(struct task_struct *p, bool preempt); extern void set_user_nice(struct task_struct *p, long nice); extern int task_prio(const struct task_struct *p); /** * task_nice - return the nice value of a given task. * @p: the task in question. * * Return: The nice value [ -20 ... 0 ... 19 ]. */ static inline int task_nice(const struct task_struct *p) { return PRIO_TO_NICE((p)->static_prio); } extern int can_nice(const struct task_struct *p, const int nice); extern int task_curr(const struct task_struct *p); extern int idle_cpu(int cpu); extern int available_idle_cpu(int cpu); extern int sched_setscheduler(struct task_struct *, int, const struct sched_param *); extern int sched_setscheduler_nocheck(struct task_struct *, int, const struct sched_param *); extern void sched_set_fifo(struct task_struct *p); extern void sched_set_fifo_low(struct task_struct *p); extern void sched_set_normal(struct task_struct *p, int nice); extern int sched_setattr(struct task_struct *, const struct sched_attr *); extern int sched_setattr_nocheck(struct task_struct *, const struct sched_attr *); extern struct task_struct *idle_task(int cpu); /** * is_idle_task - is the specified task an idle task? * @p: the task in question. * * Return: 1 if @p is an idle task. 0 otherwise. */ static __always_inline bool is_idle_task(const struct task_struct *p) { return !!(p->flags & PF_IDLE); } extern struct task_struct *curr_task(int cpu); extern void ia64_set_curr_task(int cpu, struct task_struct *p); void yield(void); union thread_union { #ifndef CONFIG_ARCH_TASK_STRUCT_ON_STACK struct task_struct task; #endif #ifndef CONFIG_THREAD_INFO_IN_TASK struct thread_info thread_info; #endif unsigned long stack[THREAD_SIZE/sizeof(long)]; }; #ifndef CONFIG_THREAD_INFO_IN_TASK extern struct thread_info init_thread_info; #endif extern unsigned long init_stack[THREAD_SIZE / sizeof(unsigned long)]; #ifdef CONFIG_THREAD_INFO_IN_TASK static inline struct thread_info *task_thread_info(struct task_struct *task) { return &task->thread_info; } #elif !defined(__HAVE_THREAD_FUNCTIONS) # define task_thread_info(task) ((struct thread_info *)(task)->stack) #endif /* * find a task by one of its numerical ids * * find_task_by_pid_ns(): * finds a task by its pid in the specified namespace * find_task_by_vpid(): * finds a task by its virtual pid * * see also find_vpid() etc in include/linux/pid.h */ extern struct task_struct *find_task_by_vpid(pid_t nr); extern struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns); /* * find a task by its virtual pid and get the task struct */ extern struct task_struct *find_get_task_by_vpid(pid_t nr); extern int wake_up_state(struct task_struct *tsk, unsigned int state); extern int wake_up_process(struct task_struct *tsk); extern void wake_up_new_task(struct task_struct *tsk); #ifdef CONFIG_SMP extern void kick_process(struct task_struct *tsk); #else static inline void kick_process(struct task_struct *tsk) { } #endif extern void __set_task_comm(struct task_struct *tsk, const char *from, bool exec); static inline void set_task_comm(struct task_struct *tsk, const char *from) { __set_task_comm(tsk, from, false); } extern char *__get_task_comm(char *to, size_t len, struct task_struct *tsk); #define get_task_comm(buf, tsk) ({ \ BUILD_BUG_ON(sizeof(buf) != TASK_COMM_LEN); \ __get_task_comm(buf, sizeof(buf), tsk); \ }) #ifdef CONFIG_SMP static __always_inline void scheduler_ipi(void) { /* * Fold TIF_NEED_RESCHED into the preempt_count; anybody setting * TIF_NEED_RESCHED remotely (for the first time) will also send * this IPI. */ preempt_fold_need_resched(); } extern unsigned long wait_task_inactive(struct task_struct *, unsigned int match_state); #else static inline void scheduler_ipi(void) { } static inline unsigned long wait_task_inactive(struct task_struct *p, unsigned int match_state) { return 1; } #endif /* * Set thread flags in other task's structures. * See asm/thread_info.h for TIF_xxxx flags available: */ static inline void set_tsk_thread_flag(struct task_struct *tsk, int flag) { set_ti_thread_flag(task_thread_info(tsk), flag); } static inline void clear_tsk_thread_flag(struct task_struct *tsk, int flag) { clear_ti_thread_flag(task_thread_info(tsk), flag); } static inline void update_tsk_thread_flag(struct task_struct *tsk, int flag, bool value) { update_ti_thread_flag(task_thread_info(tsk), flag, value); } static inline int test_and_set_tsk_thread_flag(struct task_struct *tsk, int flag) { return test_and_set_ti_thread_flag(task_thread_info(tsk), flag); } static inline int test_and_clear_tsk_thread_flag(struct task_struct *tsk, int flag) { return test_and_clear_ti_thread_flag(task_thread_info(tsk), flag); } static inline int test_tsk_thread_flag(struct task_struct *tsk, int flag) { return test_ti_thread_flag(task_thread_info(tsk), flag); } static inline void set_tsk_need_resched(struct task_struct *tsk) { set_tsk_thread_flag(tsk,TIF_NEED_RESCHED); } static inline void clear_tsk_need_resched(struct task_struct *tsk) { clear_tsk_thread_flag(tsk,TIF_NEED_RESCHED); } static inline int test_tsk_need_resched(struct task_struct *tsk) { return unlikely(test_tsk_thread_flag(tsk,TIF_NEED_RESCHED)); } /* * cond_resched() and cond_resched_lock(): latency reduction via * explicit rescheduling in places that are safe. The return * value indicates whether a reschedule was done in fact. * cond_resched_lock() will drop the spinlock before scheduling, */ #ifndef CONFIG_PREEMPTION extern int _cond_resched(void); #else static inline int _cond_resched(void) { return 0; } #endif #define cond_resched() ({ \ ___might_sleep(__FILE__, __LINE__, 0); \ _cond_resched(); \ }) extern int __cond_resched_lock(spinlock_t *lock); extern int __cond_resched_rwlock_read(rwlock_t *lock); extern int __cond_resched_rwlock_write(rwlock_t *lock); #define cond_resched_lock(lock) ({ \ ___might_sleep(__FILE__, __LINE__, PREEMPT_LOCK_OFFSET);\ __cond_resched_lock(lock); \ }) #define cond_resched_rwlock_read(lock) ({ \ __might_sleep(__FILE__, __LINE__, PREEMPT_LOCK_OFFSET); \ __cond_resched_rwlock_read(lock); \ }) #define cond_resched_rwlock_write(lock) ({ \ __might_sleep(__FILE__, __LINE__, PREEMPT_LOCK_OFFSET); \ __cond_resched_rwlock_write(lock); \ }) static inline void cond_resched_rcu(void) { #if defined(CONFIG_DEBUG_ATOMIC_SLEEP) || !defined(CONFIG_PREEMPT_RCU) rcu_read_unlock(); cond_resched(); rcu_read_lock(); #endif } /* * Does a critical section need to be broken due to another * task waiting?: (technically does not depend on CONFIG_PREEMPTION, * but a general need for low latency) */ static inline int spin_needbreak(spinlock_t *lock) { #ifdef CONFIG_PREEMPTION return spin_is_contended(lock); #else return 0; #endif } /* * Check if a rwlock is contended. * Returns non-zero if there is another task waiting on the rwlock. * Returns zero if the lock is not contended or the system / underlying * rwlock implementation does not support contention detection. * Technically does not depend on CONFIG_PREEMPTION, but a general need * for low latency. */ static inline int rwlock_needbreak(rwlock_t *lock) { #ifdef CONFIG_PREEMPTION return rwlock_is_contended(lock); #else return 0; #endif } static __always_inline bool need_resched(void) { return unlikely(tif_need_resched()); } /* * Wrappers for p->thread_info->cpu access. No-op on UP. */ #ifdef CONFIG_SMP static inline unsigned int task_cpu(const struct task_struct *p) { #ifdef CONFIG_THREAD_INFO_IN_TASK return READ_ONCE(p->cpu); #else return READ_ONCE(task_thread_info(p)->cpu); #endif } extern void set_task_cpu(struct task_struct *p, unsigned int cpu); #else static inline unsigned int task_cpu(const struct task_struct *p) { return 0; } static inline void set_task_cpu(struct task_struct *p, unsigned int cpu) { } #endif /* CONFIG_SMP */ extern bool sched_task_on_rq(struct task_struct *p); /* * In order to reduce various lock holder preemption latencies provide an * interface to see if a vCPU is currently running or not. * * This allows us to terminate optimistic spin loops and block, analogous to * the native optimistic spin heuristic of testing if the lock owner task is * running or not. */ #ifndef vcpu_is_preempted static inline bool vcpu_is_preempted(int cpu) { return false; } #endif extern long sched_setaffinity(pid_t pid, const struct cpumask *new_mask); extern long sched_getaffinity(pid_t pid, struct cpumask *mask); #ifndef TASK_SIZE_OF #define TASK_SIZE_OF(tsk) TASK_SIZE #endif #ifdef CONFIG_SMP static inline bool owner_on_cpu(struct task_struct *owner) { /* * As lock holder preemption issue, we both skip spinning if * task is not on cpu or its cpu is preempted */ return READ_ONCE(owner->on_cpu) && !vcpu_is_preempted(task_cpu(owner)); } #endif /* CONFIG_SMP */ #ifdef CONFIG_RSEQ /* * Map the event mask on the user-space ABI enum rseq_cs_flags * for direct mask checks. */ enum rseq_event_mask_bits { RSEQ_EVENT_PREEMPT_BIT = RSEQ_CS_FLAG_NO_RESTART_ON_PREEMPT_BIT, RSEQ_EVENT_SIGNAL_BIT = RSEQ_CS_FLAG_NO_RESTART_ON_SIGNAL_BIT, RSEQ_EVENT_MIGRATE_BIT = RSEQ_CS_FLAG_NO_RESTART_ON_MIGRATE_BIT, }; enum rseq_event_mask { RSEQ_EVENT_PREEMPT = (1U << RSEQ_EVENT_PREEMPT_BIT), RSEQ_EVENT_SIGNAL = (1U << RSEQ_EVENT_SIGNAL_BIT), RSEQ_EVENT_MIGRATE = (1U << RSEQ_EVENT_MIGRATE_BIT), }; static inline void rseq_set_notify_resume(struct task_struct *t) { if (t->rseq) set_tsk_thread_flag(t, TIF_NOTIFY_RESUME); } void __rseq_handle_notify_resume(struct ksignal *sig, struct pt_regs *regs); static inline void rseq_handle_notify_resume(struct ksignal *ksig, struct pt_regs *regs) { if (current->rseq) __rseq_handle_notify_resume(ksig, regs); } static inline void rseq_signal_deliver(struct ksignal *ksig, struct pt_regs *regs) { preempt_disable(); __set_bit(RSEQ_EVENT_SIGNAL_BIT, ¤t->rseq_event_mask); preempt_enable(); rseq_handle_notify_resume(ksig, regs); } /* rseq_preempt() requires preemption to be disabled. */ static inline void rseq_preempt(struct task_struct *t) { __set_bit(RSEQ_EVENT_PREEMPT_BIT, &t->rseq_event_mask); rseq_set_notify_resume(t); } /* rseq_migrate() requires preemption to be disabled. */ static inline void rseq_migrate(struct task_struct *t) { __set_bit(RSEQ_EVENT_MIGRATE_BIT, &t->rseq_event_mask); rseq_set_notify_resume(t); } /* * If parent process has a registered restartable sequences area, the * child inherits. Only applies when forking a process, not a thread. */ static inline void rseq_fork(struct task_struct *t, unsigned long clone_flags) { if (clone_flags & CLONE_THREAD) { t->rseq = NULL; t->rseq_len = 0; t->rseq_sig = 0; t->rseq_event_mask = 0; } else { t->rseq = current->rseq; t->rseq_len = current->rseq_len; t->rseq_sig = current->rseq_sig; t->rseq_event_mask = current->rseq_event_mask; } } static inline void rseq_execve(struct task_struct *t) { t->rseq = NULL; t->rseq_len = 0; t->rseq_sig = 0; t->rseq_event_mask = 0; } #else static inline void rseq_set_notify_resume(struct task_struct *t) { } static inline void rseq_handle_notify_resume(struct ksignal *ksig, struct pt_regs *regs) { } static inline void rseq_signal_deliver(struct ksignal *ksig, struct pt_regs *regs) { } static inline void rseq_preempt(struct task_struct *t) { } static inline void rseq_migrate(struct task_struct *t) { } static inline void rseq_fork(struct task_struct *t, unsigned long clone_flags) { } static inline void rseq_execve(struct task_struct *t) { } #endif #ifdef CONFIG_DEBUG_RSEQ void rseq_syscall(struct pt_regs *regs); #else static inline void rseq_syscall(struct pt_regs *regs) { } #endif const struct sched_avg *sched_trace_cfs_rq_avg(struct cfs_rq *cfs_rq); char *sched_trace_cfs_rq_path(struct cfs_rq *cfs_rq, char *str, int len); int sched_trace_cfs_rq_cpu(struct cfs_rq *cfs_rq); const struct sched_avg *sched_trace_rq_avg_rt(struct rq *rq); const struct sched_avg *sched_trace_rq_avg_dl(struct rq *rq); const struct sched_avg *sched_trace_rq_avg_irq(struct rq *rq); int sched_trace_rq_cpu(struct rq *rq); int sched_trace_rq_cpu_capacity(struct rq *rq); int sched_trace_rq_nr_running(struct rq *rq); const struct cpumask *sched_trace_rd_span(struct root_domain *rd); #endif