vmw_ptr_diff(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« vmw_ptr_diff(9) β€” the Kernel API Manual glow-up πŸ’«

okay so bestie, welcome to vmw_ptr_diff(9) from the Kernel API Manual β€” yes that's the manual name, we're folding it in right here at the top so you have the full picture πŸŽ€ this one is a tiny little icon of a function and honestly it's giving "small but mighty" ✨


🌸 NAME 🌸

vmw_ptr_diff β€” Compute the offset from a to b in bytes

like, literally just that. it diffs pointers. it's the main character of pointer arithmetic and it knows it πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

size_t vmw_ptr_diff (void *a , void *b );

look at her. two void * args, one size_t coming back out. no drama, no cap 🫢


⭐ ARGUMENTS ⭐

  • a β€” A starting pointer. your home base, your origin story, the "before" pic πŸ’–
  • b β€” A pointer offset in the same address space. the "after" pic β€” and bestie, it has to be in the same address space, that's not optional πŸ™ˆ

πŸ”₯ RETURN πŸ”₯

The offset in bytes between the two pointers. that's it, that's the whole tea β˜• number of bytes from a to b, served fresh ✨


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c β€” and like, the entire extended friend group of vmwgfx functions, all of them, no one left out, we don't do exclusion here πŸ’œ

ngl the SEE ALSO section is longer than the whole rest of the page and that's iconic behavior, we stan a well-connected function 🌈

and that's the whole page, bestie πŸ’… this lil gem lives in ./drivers/gpu/drm/vmwgfx and the version/date tag on it is October 2026 β€” so go forth, diff those pointers, stay in the same address space, and slay βœ¨πŸ¦‹πŸŽ€πŸ’–

πŸ“¦ where this page comes from