dev_ioctl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 namespace
  • cmd β€” command to issue
  • ifr β€” pointer to a struct ifreq in user space
  • data β€” data exchanged with userspace
  • need_copyout β€” whether or not copy_to_user should 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