lkml.org 
[lkml]   [1997]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: oif, ifindex, etc.
   Date: 	Wed, 01 Oct 1997 11:19:39 +0100
From: David Woodhouse <D.W.Woodhouse@nortel.co.uk>

I assume that there's a 1:1 correspondance between them, so:
For all int oif such that get_dev_by_index(oif) != NULL ,
(get_dev_by_index(oif))->ifindex == oif
&&
For all struct device * dev, get_dev_by_index(dev->ifindex) == dev

Am I right?

Yes, unless we have some bug in the current code, this should always
be the case.

Later,
David "Sparc" Miller
davem@caip.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.122 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site