Hi,
The pcnet driver uses macros atomic_listpull and atomic_listpush to maintain
a pool on npkt_ts for use in Ethernet reception. I want to do a very similar
thing in my driver, but for a different structure. So…
Can anyone summarise how the macros work ?
What would a structure other than npkt_t need to contain to be able to be
pooled using the same macros ?
Cheers,
Darren
Those atomic* functions actually aren’t so don’t use them.
-seanb
Dave Edwards <dedwards@wavelength-digital.com> wrote:
: Hi,
: The pcnet driver uses macros atomic_listpull and atomic_listpush to maintain
: a pool on npkt_ts for use in Ethernet reception. I want to do a very similar
: thing in my driver, but for a different structure. So…
: Can anyone summarise how the macros work ?
: What would a structure other than npkt_t need to contain to be able to be
: pooled using the same macros ?
: Cheers,
: Darren