STRUCT HDLC_GREYBUS_FRAME(9)
π¦ struct hdlc_greybus_frame(9) π¦
okay bestie, welcome to the kernel API manual for struct hdlc_greybus_frame β yes, that's the whole title, and yes, it's giving very "I live in ./drivers/greybus" energy. buckle up, this one's short but she's iconic π
β¨ NAME β¨
struct hdlc_greybus_frame β the structure that represents a greybus HDLC frame payload π
πΈ SYNOPSIS πΈ
here's the whole vibe, copied exactly so you can't mess it up:
struct hdlc_greybus_frame {
__le16 cport;
struct gb_operation_msg_hdr hdr;
u8 payload[];
};
like, look at her. __le16 first, then the header, then a flexible array member doing its little [] thing at the end. no cap, that trailing [] is the main character π«Ά
π Members π
cportβ the cport id, literally just the id of the cport. that's it, that's the field πhdrβ the greybus operation header (struct gb_operation_msg_hdr), sitting there holding the operation info π§payloadβ the greybus message payload, chillin' as au8 payload[]flexible array member at the end β
π Description π
so here's the lore: the HDLC payload that gets sent over UART for a greybus address has the cport preappended to the greybus message. that's literally the whole point of this struct β cport first, then the greybus message right behind it. periodt π
ngl, "preappended" is exactly what the original says, so I'm keeping it β she's iconic, don't @ me π
π₯ SEE ALSO π₯
all the besties this struct rolls with, and also the kernel file that keeps them all in ./drivers/greybus/gb-beagleplay.c:
struct gb_beagleplay(9)struct hdlc_payload(9)enum cc1352_bootloader_cmd(9)enum cc1352_bootloader_status(9)struct cc1352_bootloader_packet(9)struct cc1352_bootloader_download_cmd_data(9)struct cc1352_bootloader_crc32_cmd_data(9)hdlc_write(9)hdlc_append(9)hdlc_encoded_length(9)hdlc_tx_frames(9)csum8(9)cc1352_bootloader_pkt_rx(9)gb_message_send(9)cc1352_bootloader_empty_pkt(9)
go read them, they're all slaying in their own little ways π
and that's the whole page, bestie πΈ this gem lives over in ./drivers/greybus, dated October 2026, and it's filed under struct hdlc_greybus_frame(9) β go forth and preappend your cports responsibly π¦π
π¦ 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