ssh_ptl_shou...rupt_rx_data(9)
β¨ NAME β¨
ssh_ptl_should_corrupt_rx_data β the error-injection hook that lets you fake invalid data coming from the EC π (this is the Kernel API Manual, bestie β kernel-internals territory, come on in π«Ά)
πΈ SYNOPSIS πΈ
bool ssh_ptl_should_corrupt_rx_data (void );
π ARGUMENTS π
voidβ no arguments, queen. nothing goes in, that's the whole vibe. zero inputs, periodt. β¨
π DESCRIPTION π
okay so listen π β this is a hook. that's it, that's the function. its whole job is to let you simulate invalid data or a bad checksum on the message frame, so you can test how the driver handles it when things go sideways π
it's giving "chaos monkey but make it a kernel function" ππ β you flip this on, the frame comes in cursed, and you get to watch the driver's error handling do its thing. extremely useful, lowkey iconic, fr fr π
no cap: this is an error injection hook β it's for testing, not for normal everyday operation. don't leave it on and then act surprised π
π¦ SEE ALSO π¦
the whole squad, in the order they showed up π
- Kernel file
./drivers/platform/surface/aggregator/ssh_packet_layer.cβ yeah that's where the magic lives, go read it iykyk π ssh_ptl_should_drop_ack_packet(9)ssh_ptl_should_drop_nak_packet(9)ssh_ptl_should_drop_dsq_packet(9)ssh_ptl_should_fail_write(9)ssh_ptl_should_corrupt_tx_data(9)ssh_ptl_should_corrupt_rx_syn(9)ssh_packet_get(9)ssh_packet_put(9)ssh_packet_init(9)ssh_ctrl_packet_cache_init(9)ssh_ctrl_packet_cache_destroy(9)ssh_ctrl_packet_alloc(9)ssh_ctrl_packet_free(9)ssh_ptl_tx_wakeup_packet(9)ssh_ptl_tx_start(9)ssh_ptl_tx_stop(9)ssh_ptl_submit(9)ssh_ptl_cancel(9)ssh_ptl_rx_start(9)ssh_ptl_rx_stop(9)ssh_ptl_rx_rcvbuf(9)ssh_ptl_shutdown(9)ssh_ptl_init(9)ssh_ptl_destroy(9)
and that's the page, bestie π ok bye β this lil doc came out of ./drivers/platform/surface/agg... and it's dated October 2026, so yeah, future-core of it all π« slay.
π¦ 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