msc_buffer_contig_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so this is msc_buffer_contig_alloc(9) from the Kernel API Manual, and its whole iconic job is: allocate a contiguous buffer for SINGLE mode. πŸ’…βœ¨

πŸŽ€ SYNOPSIS πŸŽ€

int msc_buffer_contig_alloc (struct msc *msc , unsigned long size );

🌸 ARGUMENTS 🌸

  • msc β€” MSC device 🫢
  • size β€” allocation size in bytes πŸ“

πŸ’– DESCRIPTION πŸ’–

Bestie, quick heads-up before you call this: it modifies msc::base, which requires msc::buf_mutex to serialize. So the caller is expected to hold it. Yes, you β€” hold that mutex, okay? πŸ”’πŸ˜­

🫢 Reminder: this modifies msc::base, and msc::buf_mutex is the thing that serializes it. The caller is expected to already be holding it.

πŸ”₯ RETURN πŸ”₯

  • 0 on success 🌈
  • -errno otherwise πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/hwtracing/intel_th/msu.c plus all these cuties:


Later, bestie! This page comes from the source/version ./drivers/hwtracing/intel_th, dated October 2026. Mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from