amdgpu_device_vram_access(9)
π amdgpu_device_vram_access(9) β like, the whole Kernel API Manual page, bestie β¨
okay so picture this: it's a Kernel API Manual page, the star of the show is amdgpu_device_vram_access(9), and she does exactly one thing but she does it flawlessly β she reads or writes a buffer in vram. main character energy, no notes. π«Ά
πΈ NAME πΈ
amdgpu_device_vram_access β read/write a buffer in vram π
β¨ SYNOPSIS β¨
void amdgpu_device_vram_access (struct amdgpu_device *adev , loff_t pos
, void *buf , size_t size , bool write );
like yes that's the whole signature, she's not hiding anything, she's literally just vibing in one line (okay two, the formatting spilled, we don't judge π).
π¦ ARGUMENTS π¦
adevβ anamdgpu_devicepointer. your device handle, your ride or die, the whole reason we're here π«posβ offset of the buffer in vram. like, where in vram the buffer lives. location check, iykyk πbufβ virtual address of the buffer in system memory. the system-memory side of the operation, the other half of the friendship bracelet π€sizeβ read/write size, and hear me out:sizeof(buf)must >size. not "greater than or equal", bestie, strictly greater. the way that's non-negotiable πwriteβtruemeans write to vram, otherwise it's read from vram. a little boolean doing double duty, an icon honestly π
β οΈ real talk:sizeof(buf)must be greater thansize. do not fumble this, do not round it, do not "it's probably fine" it. it is not fine. π
π SEE ALSO π
Kernel file: ./drivers/gpu/drm/amd/amdgpu/amdgpu_device.c β that's her home address, the source file she lives in π
and now the extended friend group, our group chat basically, every single one of them, present and accounted for, none left on read:
pcie_replay_count(9)board_info(9)uma/carveout_options(9)uma/carveout(9)amdgpu_device_supports_px(9)amdgpu_device_supports_boco(9)amdgpu_device_supports_baco(9)amdgpu_device_supports_smart_shift(9)amdgpu_device_mm_access(9)amdgpu_device_aper_access(9)amdgpu_device_get_rev_id(9)amdgpu_device_asic_init(9)amdgpu_device_mem_scratch_init(9)amdgpu_device_mem_scratch_fini(9)amdgpu_device_program_register_sequence(9)amdgpu_device_pci_config_reset(9)amdgpu_device_pci_reset(9)amdgpu_device_resize_fb_bar(9)amdgpu_device_need_post(9)amdgpu_device_should_use_aspm(9)amdgpu_device_vga_set_decode(9)amdgpu_device_check_block_size(9)amdgpu_device_check_vm_size(9)amdgpu_device_check_arguments(9)amdgpu_switcheroo_set_state(9)amdgpu_switcheroo_can_switch(9)amdgpu_device_enable_virtual_display(9)amdgpu_device_parse_gpu_info_fw(9)amdgpu_device_ip_early_init(9)amdgpu_device_ip_init(9)amdgpu_device_fill_reset_magic(9)amdgpu_device_check_vram_lost(9)amdgpu_device_set_cg_state(9)amdgpu_device_ip_late_init(9)amdgpu_device_smu_fini_early(9)amdgpu_device_ip_fini(9)amdgpu_device_delayed_init_work_handler(9)amdgpu_device_ip_suspend_phase1(9)amdgpu_device_ip_suspend_phase2(9)amdgpu_device_ip_suspend(9)amdgpu_device_ip_resume_phase1(9)amdgpu_device_ip_resume_phase2(9)amdgpu_device_ip_resume_phase3(9)amdgpu_device_ip_resume(9)amdgpu_device_detect_sriov_bios(9)amdgpu_device_asic_has_dc_support(9)amdgpu_device_has_dc_support(9)amdgpu_device_check_iommu_direct_map(9)amdgpu_device_check_iommu_remap(9)amdgpu_device_init(9)amdgpu_device_fini_hw(9)amdgpu_device_evict_resources(9)amdgpu_device_pm_notifier(9)amdgpu_device_prepare(9)amdgpu_device_complete(9)amdgpu_device_suspend(9)amdgpu_device_resume(9)amdgpu_device_reset_sriov(9)amdgpu_device_has_job_running(9)amdgpu_device_should_recover_gpu(9)amdgpu_device_gpu_recover(9)amdgpu_device_partner_bandwidth(9)amdgpu_device_gpu_bandwidth(9)amdgpu_device_get_pcie_info(9)amdgpu_device_is_peer_accessible(9)amdgpu_pci_error_detected(9)amdgpu_pci_mmio_enabled(9)amdgpu_pci_slot_reset(9)amdgpu_pci_resume(9)amdgpu_device_halt(9)amdgpu_device_get_gang(9)amdgpu_device_switch_gang(9)amdgpu_device_enforce_isolation(9)
that's the whole roster, every single (9), slay π§
and that's the page!! π before you go, tiny sign-off: this cutie came out of ./drivers/gpu/drm/amd/amdgpu (that's the source, that's where she's from π
) and the date on it is October 2026. periodt. see you in the next manpage, bestie ππ
π¦ 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