dev_ioctl(9)
π
dev_ioctl(9) β Kernel API Manual realness π
okay so bestie, welcome to the dev_ioctl(9) page from the Kernel API Manual. it's giving kernel networking, it's giving ioctl, and honestly? we're gonna get through it together. π«Ά
πΈ NAME πΈ
dev_ioctl β network device ioctl
β¨ SYNOPSIS β¨
int dev_ioctl (struct net *net , unsigned int cmd , struct ifreq *ifr ,
void __user *data , bool *need_copyout );
π ARGUMENTS π
netβ the applicable net namespacecmdβ command to issueifrβ pointer to astruct ifreqin user spacedataβ data exchanged with userspaceneed_copyoutβ whether or notcopy_to_usershould be called
π DESCRIPTION π
Issue ioctl functions to devices. bestie, this is normally called by the user space syscall interfaces, but it can sometimes be useful for other purposes too. iykyk. π
The return value is the return from the syscall if positive, or a negative errno code on error. no cap. π
π¦ SEE ALSO π¦
Kernel file ./net/core/dev_ioctl.c dev_get_hwtstamp_phylib(9), dev_set_hwtstamp_phylib(9), dev_load(9)
mwah π this lil page lives under the source/version ./net/core, dated October 2026, and it's serving dev_ioctl(9) until the very last line. 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