From: Russell King <rmk@arm.linux.org.uk>
Date: Fri, 11 Feb 2000 22:37:22 +0000 (GMT)
I've just been reviewing the changes to 3c59x.c, and have noticed
the following line of code:
vp->rx_ring = (void *)(((long)vp->priv_addr + 15) & ~15);
Can someone explain the purpose of this please?
The rx ring needs to be 16-byte aligned, so 15 bytes of slop are
added the to allocation size and it is aligned here.
Whats hard to understand about what it is doing? Admittedly it
is a bit ugly, but other than that it is correct.
In fact there is a comment right above that statement describing
what it is doing!
Later,
David S. Miller
davem@redhat.com
-
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/
This archive was generated by hypermail 2b29 : Tue Feb 15 2000 - 21:00:21 EST