qeth_send_control_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

hiii bestie πŸ’– welcome to qeth_send_control_data(9) from the Kernel API Manual β€” this is the page where we send control command to the card, and honestly it’s giving main-character kernel energy ✨

🌸 NAME 🌸

qeth_send_control_data β€” send control command to the card πŸ’Œ

✨ SYNOPSIS ✨

int qeth_send_control_data (struct qeth_card *card , struct
       qeth_cmd_buffer *iob , int (*reply_cb)(struct qeth_card *cb_card, struct
       qeth_reply *cb_reply, unsigned long cb_cmd) , void *reply_param );

πŸŽ€ ARGUMENTS πŸŽ€

  • card β€” qeth_card structure pointer 🫢
  • iob β€” qeth_cmd_buffer pointer πŸ“¨
  • reply_cb β€” callback function pointer, and it comes with lore:
    • cb_card: pointer to the qeth_card structure
    • cb_reply: pointer to the qeth_reply structure
    • cb_cmd: pointer to the original iob for non-IPA commands, or to the qeth_ipa_cmd structure for the IPA commands.
  • reply_param β€” private pointer passed to the callback πŸ”’

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so bestie, the callback function gets called one or more times, with cb_cmd pointing to the response returned by the hardware. no cap, that’s the whole vibe.

The callback function must return:

  • > 0 if more reply blocks are expected
  • 0 if the last or only reply block is received
  • < 0 on error
⚠️ this return-value contract is literally not optional β€” > 0 = more reply blocks expected, 0 = last or only reply block received, < 0 = error 😭

The callback function can get the value of the reply_param pointer from the field 'param' of the structure qeth_reply. iykyk πŸ’…

🌈 SEE ALSO 🌈


xoxo, your kernel bestie πŸ’… this page came from ./drivers/s390/net, dated October 2026, and it’s literally qeth_send_control_data(9) β€” periodt 🫢

πŸ“¦ where this page comes from