STRUCT MOST_CHANNEL_CAPABILITY(9)
π NAME
okay so bestie, gather round: this is struct most_channel_capability β literally the Channel capability struct, and she is the main character of this page. We're deep in the Kernel API Manual π so buckle up.
β¨ SYNOPSIS
struct most_channel_capability {
u16 direction;
u16 data_type;
u16 num_buffers_packet;
u16 buffer_size_packet;
u16 num_buffers_streaming;
u16 buffer_size_streaming;
const char *name_suffix;
};
yes bestie, that's the whole vibe. copy it exactly, don't get creative π
π«Ά Members
directionβ the supported channel directions, no cap. it's a bitwise OR-combination of the values from the enumerationmost_channel_direction. and listen β zero is an allowed value and it means "channel may not be used" π so if you see a zero, that channel is literally not invited to the party.data_typeβ the supported channel data types β¨. again, bitwise OR-combination of the values from the enumerationmost_channel_data_type. zero is allowed here too, and same energy: "channel may not be used".num_buffers_packetβ the maximum number of buffers this channel supports for packet data types (Async,Control,QoS). that's the packet girlies' buffer budget π₯.buffer_size_packetβ the maximum buffer size this channel supports for packet data types (Async,Control,QoS). how big each one can be, periodt.num_buffers_streamingβ the maximum number of buffers this channel supports for streaming data types (Sync,AV Packetized). different data types, different budget, we love range π.buffer_size_streamingβ the maximum buffer size this channel supports for streaming data types (Sync,AV Packetized). yes bestie, streaming gets her own size limit too.name_suffixβ an optional suffix provided by an HDM that gets attached to the regular channel name π. like a little accessory. iconic.
πΈ Description
so this struct describes the capabilities of a MOST channel β things like supported Data Types and directions, iykyk. this info is provided by an HDM for the MostCore π¦.
then the Core creates read only sysfs attribute files in /sys/devices/most/mdev#/<channel>/ with the following attributes:
-available_directions-available_datatypes-number_of_packet_buffers-number_of_stream_buffers-size_of_packet_buffer-size_of_stream_buffer
and ngl the content of each file is a string with all the supported properties of this very channel attribute. cute, consistent, slay π
lowkey reminder: read only. you're admiring the attributes, not editing them. hands off bestie π«Ά
π SEE ALSO
Kernel file ./include/linux/most.h plus all these besties:
enum most_interface_type(9)enum most_channel_direction(9)enum most_channel_data_type(9)struct most_channel_config(9)struct most_interface(9)struct most_component(9)most_register_interface(9)most_deregister_interface(9)most_stop_enqueue(9)most_resume_enqueue(9)
okay that's the whole page bestie, go be iconic with your channel capabilities πβ¨
signed, sealed, delivered from ./include/linux β October 2026 β and yeah, the footer still says struct most_...l_capability(9) because some things are simply too iconic to abbreviate properly π
π
π¦ 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