ssh_ptl_shou...rupt_rx_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ’œ


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