msc_buffer_contig_alloc(9)
β¨ 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 modifiesmsc::base, andmsc::buf_mutexis the thing that serializes it. The caller is expected to already be holding it.
π₯ RETURN π₯
0on success π-errnootherwise π
π SEE ALSO π
Kernel file ./drivers/hwtracing/intel_th/msu.c plus all these cuties:
struct msc_window(9)struct msc_iter(9)struct msc(9)struct msu_buffer_entry(9)msc_is_last_win(9)msc_next_window(9)msc_find_window(9)msc_oldest_window(9)msc_win_oldest_sg(9)msc_buffer_iterate(9)msc_buffer_clear_hw_header(9)msc_configure(9)msc_disable(9)msc_buffer_contig_free(9)msc_buffer_contig_get_page(9)msc_buffer_win_alloc(9)msc_buffer_win_free(9)msc_buffer_relink(9)msc_buffer_free(9)msc_buffer_alloc(9)msc_buffer_unlocked_free_unless_used(9)msc_buffer_free_unless_used(9)msc_buffer_get_page(9)struct msc_win_to_user_struct(9)msc_win_to_user(9)intel_th_msc_window_unlock(9)
Later, bestie! This page comes from the source/version ./drivers/hwtracing/intel_th, dated October 2026. Mwah ππ
π¦ 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