首页 > 其他分享 >ioctl(skfd, request, pwrq)

ioctl(skfd, request, pwrq)

时间:2023-01-06 01:33:53浏览次数:44  
标签:pwrq name int request skfd ioctl

/*------------------------------------------------------------------*/
/*
 * Wrapper to extract some Wireless Parameter out of the driver
 */
static inline int
iw_get_ext(int			skfd,		/* Socket to the kernel */
	   const char *		ifname,		/* Device name */
	   int			request,	/* WE ID */
	   struct iwreq *	pwrq)		/* Fixed part of the request */
{
  /* Set device name */
  strncpy(pwrq->ifr_name, ifname, IFNAMSIZ);
  /* Do the request */
  return(ioctl(skfd, request, pwrq));
}

  

标签:pwrq,name,int,request,skfd,ioctl
From: https://www.cnblogs.com/hshy/p/17029284.html

相关文章