ssh_ptl_should_fail_write(9)
π
ssh_ptl_should_fail_write(9) β the Kernel API Manual page, bestie edition π
Okay so this is a page from the Kernel API Manual, and it's literally titled ssh_ptl_should_fail_write, bestie. Let's get into it β¨
πΈ NAME πΈ
ssh_ptl_should_fail_write β an error injection hook whose whole job is to make serdev_device_write() fail. Yes, on purpose. Iconic behavior, no cap π
π¦ SYNOPSIS π¦
int ssh_ptl_should_fail_write (void );
π ARGUMENTS π
voidβ no arguments, bestie. None. Zero. The function said "I need nothing from you" and honestly? Respect π«Ά
β¨ DESCRIPTION β¨
This is the hook you use to simulate errors in serdev_device_write when transmitting packets. It's giving "let's break it on purpose so we can test stuff" energy ππ₯
π SEE ALSO π
- Kernel file
./drivers/platform/surface/aggregator/ssh_packet_layer.c ssh_ptl_should_drop_ack_packet(9)ssh_ptl_should_drop_nak_packet(9)ssh_ptl_should_drop_dsq_packet(9)ssh_ptl_should_corrupt_tx_data(9)ssh_ptl_should_corrupt_rx_syn(9)ssh_ptl_should_corrupt_rx_data(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 whole vibe, bestie π This was from the Linux Kernel, dated October 2026, and the original page footer had ./drivers/platform/surface/agg... on the left with October 2026 and ssh_ptl_should_fail_write(9) hanging out at the bottom. 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