struct device

Christos Ricudis (ricudis@paiko.gr)
Tue, 10 Aug 1999 00:12:29 +0300 (EET DST)


Hello,

I am trying to port sifi (http://www.ifi.unizh.ch/ikm/SINUS/firewall/) to
Linux 2.2.

One of the things that need porting is the use of obsolete pa_xxxx fields
in struct device :

/* dev_base is taken from <linux/netdevice.h> */

int sf_local(__u32 addr)
{
struct device *pdev;

for(pdev = dev_base; pdev; pdev = pdev->next) {
if(pdev->pa_addr == addr)
return 1;
}
return 0;
}

Ufortunately, i cannot find a clear and consistent example of replacing
pa_addr etc usage by something similar in the Linux kernel.
(perhaps pdev->ip_ptr->ifa_list ?).

-- 

Christos Ricudis ricudiis@paiko.gr I am a target. Please bomb me at N40 33.765' E22 55.130' Alt. 69ft

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/