Leo Eraly <leo@aki.student.khleuven.be> writes: > Hi, > > I'am doing my first steps in the world op kernel programming. > And i'am trying to port a 2.0 patch to a 2.4.20 kernel. > And somewhere in the patch is see the following code > > in net/core/dev.c > <code> > struct device *main_dev = net_alias_main_dev(dev); > + if(main_dev->do_ioctl==NULL) > + return -EOPNOTSUPP; > + ret=main_dev->do_ioctl(dev, &ifr, getset); > + break; > </code> > > What does this net_alias_main_dev() function do? > And does it still exists in 2.4 or is it replaced by another function. > I can't seem to find something about it in my 2.4.20 src I don't know what net_alias_main_dev does, and I don't see it in 2.4 or 2.5, but you might try searching 2.0 to see where it's defined. Then you'll know what it does. Here's a script I use, run in the directory where I want the search to start, to find things:
Attachment:
kern-grep-find
Description: kern-grep-find
You run it like this: kern-grep-find net_alias_main_dev -- --Ed L Cashin | PGP public key: ecashin@uga.edu | http://noserose.net/e/pgp/