xe_devcoredump_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ xe_devcoredump_read(9) πŸŽ€

🌸 NAME 🌸

okay so this page is from the Kernel API Manual, and the main character is xe_devcoredump_read(9) β€” she reads data from the Xe device coredump snapshot. that’s the whole name vibe, no cap. πŸ’–

✨ SYNOPSIS ✨

here’s the signature, bestie β€” copy it exactly, character for character:

ssize_t xe_devcoredump_read (char *buffer , loff_t offset , size_t count
       , void *data , size_t datalen );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • buffer β€” the destination buffer where the coredump data gets copied into. drop it in here.
  • offset β€” where in the coredump data the reading starts. like a little bookmark πŸ”–
  • count β€” how many bytes to read. byte budget.
  • data β€” pointer to the xe_devcoredump structure. that’s what data points at.
  • datalen β€” length of the data. and yes, she’s unused β€” the page literally says so, don’t come for me πŸ™ˆ.

πŸ’… DESCRIPTION πŸ’…

Reads a chunk of the coredump snapshot data into the provided buffer. that’s the core move, and it ate. ✨

if the devcoredump is smaller than 1.5 GB (XE_DEVCOREDUMP_CHUNK_MAX), it is read directly from a pre-written buffer. direct read, cute and simple πŸ“

for larger devcoredumps, the pre-written buffer must be periodically repopulated from the snapshot state due to kmalloc size limitations. that’s the big-coredump plot twist β€” no skipping that part, bestie. 😭

πŸ”₯ RETURN πŸ”₯

Number of bytes copied on success, or a negative error code on failure. failure is giving negative error code, success is giving byte count. periodt. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘


mwah πŸ’‹ footer moment: source/version is ./drivers/gpu/drm/xe, date is October 2026, and the footer title is xe_devcoredump_read(9). bye bestie, go read that coredump 🫢✨

πŸ“¦ where this page comes from