LINEAR IO ITERATOR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… Linear io iterator(9) πŸ’…

okay bestie, welcome to the Kernel API Manual page for the linear io iterator. it's giving "legacy code we're politely waiting to retire" 😭 no cap.

πŸ¦‹ Linear io iterator πŸ¦‹

real talk: this code should die in the not too near future πŸ’€. best-case scenario? we could make io-mapping use memremap for all io memory, and have memremap implement a kmap_local functionality. then we could strip a huge amount of code. like, iconic cleanup energy ✨.

these linear io iterators are implemented to mimic old functionality, and they don't use kmap_local semantics at all internally πŸ™ˆ. instead they use ioremap or friends, and at least on 32-bit they add global TLB flushes and points of failure. so yeah, that's the tea β˜•.

heads up bestie: this is legacy mimicry, not kmap_local semantics β€” and on 32-bit it adds global TLB flushes and points of failure πŸ’€

πŸ‘€ SEE ALSO πŸ‘€

Kernel file: ./drivers/gpu/drm/ttm/ttm_resource.c


mwah πŸ’‹ this page came from ./drivers/gpu/drm/ttm, dated October 2026, and it's literally the Linear io iterator(9) moment β€” bye bestie, go touch some kmap_local-adjacent grass 🌱🫢

πŸ“¦ where this page comes from