LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-09-2005, 08:15 PM   #1
sanjay_ach
LQ Newbie
 
Registered: Aug 2005
Posts: 6

Rep: Reputation: 0
Implementing ioctl in network drivers


Hi
I would like to implement ioctl calls from ifconfig in my network driver. How do I approach it? I was seeing the code from e100.c and it uses just the following code...

static int e100_do_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd)
{
struct nic *nic = netdev_priv(netdev);

return generic_mii_ioctl(&nic->mii, if_mii(ifr), cmd, NULL);
}

Any clue what is it doing? Is there any other way to implement ioctl calls?

Sanjay
 
Old 08-10-2005, 04:01 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hi,

see the followink link for a good explanation about linux network drivers (chapter 17)
http://www.oreilly.com/catalog/linux...book/index.csp

Oliv'
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora C2 - Wireless network drivers? Broadcom 802.11g Network Adapter FragTek Linux - Wireless Networking 7 01-22-2010 12:10 AM
Slackware 10 network configuration. Problem with 8139 network card drivers ! Padmakiran Linux - Networking 8 03-27-2007 06:48 AM
Implementing mmap Kumar Programming 0 09-08-2005 03:12 AM
implementing ping? pcdude Programming 4 11-03-2004 03:57 AM
implementing a graph bprasanth_20 Programming 4 10-24-2003 11:44 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration