pch_gbe_ioctl(9)
π pch_gbe_ioctl β the Kernel API Manual moment β¨
okay so bestie, welcome to pch_gbe_ioctl(9), a Kernel API Manual entry, and honestly it's giving "small function, big responsibilities" π
β¨ NAME β¨
pch_gbe_ioctl β controls register through a MII interface π¦
like, yes, that's the whole pitch. it pokes at registers via the MII interface, iykyk π
πΈ SYNOPSIS πΈ
int pch_gbe_ioctl (struct net_device *netdev , struct ifreq *ifr , int
cmd );
that signature is literally the whole vibe. three args, one int coming back at you π«Ά
π§ ARGUMENTS π§
netdevβ the network interface device structure. it's the whole NIC's main character energy, no cap πifrβ a pointer to theifrstructure. yes, a pointer. we love a pointer πcmdβ the control command. this is what tells the function what to actually do, iconic behavior β
π₯ RETURN π₯
0β successfully π slay, it worked- Negative value β failed π not the vibe, something went sideways
bestie note: the manpage says "Successfully Negative value: Failed" β so like, 0 = good, anything negative = bad news bears π
π SEE ALSO π
first up, the kernel file where all this lives:
./drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c
and now the full friend group, fr fr β every single one of these cuties is (9):
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_alloc_tx_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_tx_timeout(9)pch_gbe_napi_poll(9)pch_gbe_netpoll(9)
like, that's the entire extended universe right there π« go read them, i'll wait π
and that's the page, bestie!! π§ββοΈ this little cutie comes from ./drivers/net/ethernet/oki-sem... (that's the source string, truncated and all, i don't make the rules π) and it's dated October 2026, filed under pch_gbe_ioctl(9). periodt π
β¨
π¦ 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