__i915_gem_..._create_user(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– __i915_gem_..._create_user(9) β€” Kernel API Manual ✨

okay so bestie, welcome to the lil manpage for __i915_gem_..._create_user πŸŽ€ this one lives in the Kernel API Manual and honestly it's giving "internal helper that knows what it's doing" energy πŸ’…


🌸 NAME 🌸

__i915_gem_object_create_user β€” creates a new object using the same path as DRM_I915_GEM_CREATE_EXT πŸ¦‹


✨ SYNOPSIS ✨

struct drm_i915_gem_object * __i915_gem_object_create_user (struct
drm_i915_private *i915 , u64 size , struct intel_memory_region
**placements , unsigned int n_placements );

like literally that's the whole signature, no cap 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • i915 β€” the i915 private struct, your main character 🫢
  • size β€” size of the buffer, in bytes πŸ“
  • placements β€” possible placement regions, in priority order β€” yes bestie, priority order, don't shuffle them πŸ™ˆ
  • n_placements β€” number of possible placement regions πŸ”’

πŸ’œ DESCRIPTION πŸ’œ

so this function is exposed primarily for selftests πŸ§ͺ like it's not out here doing the most for everyone, it's a selftest girlie. and it does very little error checking β€” not me showing up to the function with zero guardrails πŸ’€

it is assumed that the set of placement regions has already been verified to be valid βœ… so like, do that part yourself first, okay? it's not gonna double-check you. vibe check your placements before you call, fr fr 🌈


πŸ¦‹ SEE ALSO πŸ¦‹


πŸ’‘ friendly reminder bestie: very little error checking means you are the error checking. slay responsibly πŸ‘‘

that's the whole page!! source: ./drivers/gpu/drm/i915/gem, dated October 2026, and we're out πŸ’…βœ¨ bye bestie, go create some objects πŸ“

πŸ“¦ where this page comes from