gelic_alloc_card_net(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

gelic_alloc_card_net(9) πŸ’–

okay bestie, welcome to the Kernel API Manual ✨ this one's a lil function called gelic_alloc_card_net and honestly? it's giving "setup era." it's the one that does the allocating: net_device AND card structure, both. no cap.


🌸 NAME 🌸

gelic_alloc_card_net β€” allocates net_device and card structure πŸŽ€


✨ SYNOPSIS ✨

struct gelic_card * gelic_alloc_card_net (struct net_device **netdev );

🫢 ARGUMENTS 🫢

  • netdev β€” the interface device structure πŸ’… like, this is the net_device pointer situation you're handing over

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea: it returns the card structure, or NULL in case of errors 😭 (yes, NULL means something went wrong, keep an eye out).

and the card and net_device structures? they're linked to each other πŸ”— literally attached. main character duo energy, fr fr.


πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file lives right here, go look:

Kernel file ./drivers/net/ethernet/toshiba/ps3_gelic_net.c

and here's the whole friend group, every single one, in order πŸ¦‹:

gelic_descr_get_status(9), gelic_card_disable_txdmac(9),
gelic_card_enable_rxdmac(9), gelic_card_disable_rxdmac(9),
gelic_descr_set_status(9), gelic_card_reset_chain(9),
gelic_card_free_chain(9), gelic_card_init_chain(9),
gelic_descr_prepare_rx(9), gelic_card_release_rx_chain(9),
gelic_card_fill_rx_chain(9), gelic_card_alloc_rx_skbs(9),
gelic_descr_release_tx(9), gelic_card_release_tx_chain(9),
gelic_net_set_multi(9), gelic_net_stop(9),
gelic_card_get_next_tx_descr(9), gelic_descr_set_tx_cmdstat(9),
gelic_descr_prepare_tx(9), gelic_card_kick_txdma(9), gelic_net_xmit(9),
gelic_net_pass_skb_up(9), gelic_card_decode_one_descr(9),
gelic_net_poll(9), gelic_net_poll_controller(9), gelic_net_open(9),
gelic_net_tx_timeout_task(9), gelic_net_tx_timeout(9),
gelic_ether_setup_netdev_ops(9), gelic_net_setup_netdev(9)

that's thirty of them btw. thirty. she's popular πŸ’€πŸ”₯


ngl bestie, read the NULL return note twice. errors happen and you don't wanna be caught slipping πŸ™ˆ

okay that's the whole page, mwah πŸ’‹ this came from ./drivers/net/ethernet/toshiba, October 2026 vintage, and it ate. periodt. πŸ§šβ­πŸ’–

πŸ“¦ where this page comes from