pch_gbe_alloc_tx_buffers(9)
π pch_gbe_alloc_tx_buffers(9) β NAME β¨
okay so bestie, welcome to the Kernel API Manual π and buckle up because today's main character is pch_gbe_alloc_tx_buffers β she allocates transmit buffers. that's it, that's the whole vibe. she gets the TX buffers ready so your packets have somewhere cute to live before they yeet themselves out into the world π
π¦ SYNOPSIS π¦
int pch_gbe_alloc_tx_buffers (struct pch_gbe_adapter *adapter , struct
pch_gbe_tx_ring *tx_ring );
literally just hand her two things and she does the thing, no cap π
πΈ ARGUMENTS πΈ
adapterβ the board private structure π think of it as the adapter's personal little diary, all its private info lives in here.tx_ringβ the Tx descriptor ring β¨ the ring of descriptors she's gonna fill up. the actual hangout spot for the transmit side.
π RETURN π
ok so the receipts:
0on success π (we love a clean win)-ENOMEMif a TX skb allocation fails π (translation: out of memory, she could not get the skb, it's giving budget cuts)
ngl, keep an eye on that -ENOMEM bestie β if you get it back, the TX skb allocation straight up failed and you gotta handle it. no silent slacking allowed π
β SEE ALSO β
the whole friend group, fr fr β she does not run alone:
- Kernel file
./drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.cβ that's where she lives π pch_gbe_mac_read_mac_addr(9)pch_gbe_wait_clr_bit(9)pch_gbe_mac_mar_set(9)pch_gbe_mac_reset_hw(9)pch_gbe_mac_init_rx_addrs(9)pch_gbe_mac_force_mac_fc(9)pch_gbe_mac_set_wol_event(9)pch_gbe_mac_ctrl_miim(9)pch_gbe_mac_set_pause_packet(9)pch_gbe_alloc_queues(9)pch_gbe_init_stats(9)pch_gbe_init_phy(9)pch_gbe_mdio_read(9)pch_gbe_mdio_write(9)pch_gbe_reset_task(9)pch_gbe_reinit_locked(9)pch_gbe_reset(9)pch_gbe_free_irq(9)pch_gbe_irq_disable(9)pch_gbe_irq_enable(9)pch_gbe_setup_tctl(9)pch_gbe_configure_tx(9)pch_gbe_setup_rctl(9)pch_gbe_configure_rx(9)pch_gbe_unmap_and_free_tx_resource(9)pch_gbe_unmap_and_free_rx_resource(9)pch_gbe_clean_tx_ring(9)pch_gbe_clean_rx_ring(9)pch_gbe_watchdog(9)pch_gbe_tx_queue(9)pch_gbe_update_stats(9)pch_gbe_intr(9)pch_gbe_alloc_rx_buffers(9)pch_gbe_clean_tx(9)pch_gbe_clean_rx(9)pch_gbe_setup_tx_resources(9)pch_gbe_setup_rx_resources(9)pch_gbe_free_tx_resources(9)pch_gbe_free_rx_resources(9)pch_gbe_request_irq(9)pch_gbe_up(9)pch_gbe_down(9)pch_gbe_sw_init(9)pch_gbe_open(9)pch_gbe_stop(9)pch_gbe_xmit_frame(9)pch_gbe_set_multi(9)pch_gbe_set_mac(9)pch_gbe_change_mtu(9)pch_gbe_set_features(9)pch_gbe_ioctl(9)pch_gbe_tx_timeout(9)pch_gbe_napi_poll(9)pch_gbe_netpoll(9)
like, the entire squad π iykyk π«Ά
and that's the page bestie!! slay β¨ this lil gem came from ./drivers/net/ethernet/oki-sem... and it's dated October 2026 β so go forth, allocate those TX buffers, and remember: 0 means you ate, -ENOMEM means try again later ππ
π₯
π¦ 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