ttm_backup_copy_page(9)
π¦ ttm_backup_copy_page(9) β the kernel API manual, bestie edition β¨
Okay so picture this: it's giving kernel API manual, it's in section 9, and it's literally about copying a page that you already backed up. The way that this function is just here to put your data back where it belongs π«Ά. Buckle up, this one's short but she's important.
β¨ NAME β¨
ttm_backup_copy_page β copy the contents of a previously backed up page π
πΈ SYNOPSIS πΈ
int ttm_backup_copy_page (struct file *backup , struct page *dst ,
pgoff_t handle , bool intr , gfp_t additional_gfp );
Like, that's the whole signature. Five args, one int back. Iconic.
π ARGUMENTS π
backupβ thestruct backuppointer that was used to back up the page. Your little backup handle bestie π₯°dstβ thestruct pageyou're copying into. Destination era β¨handleβ the handle that got returned when the page was backed up. Gotta have the receipt, iykyk.intrβ try to perform the waits interruptible, or at least killable. Basically: do you want to be politely interruptible or nah πadditional_gfpβ the GFP mask to add to the default GFP mask, if there is one. Extra mask energy π§
β RETURN β
0on success β slay, we ate π- Negative error code on failure β and notably
-EINTRifintrwas set totrueand a signal is pending. Like, a signal showed up mid-wait and was like "girl, not right now" π
π SEE ALSO π
Kernel file ./drivers/gpu/drm/ttm/ttm_backup.c, plus the whole backup friend group:
ttm_backup_drop(9)ttm_backup_backup_folio(9)ttm_backup_fini(9)ttm_backup_bytes_avail(9)ttm_backup_shmem_create(9)
Heads up bestie: if you passintr = trueand there's a signal pending, don't be shocked when you get-EINTRback instead of a0. That's her whole personality, no cap π
And that's the whole read, babe π«Ά. This lil page lives in ./drivers/gpu/drm/ttm, dated October 2026, and it's from the Kernel API Manual β go forth and copy those pages with main character energy, periodt. π¦β¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms