.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "MC32_LOAD_RX_RING" "9" "09 October 2005" "" "" .SH NAME mc32_load_rx_ring \- load the ring of receive buffers .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int mc32_load_rx_ring (struct net_device * \fIdev\fB); \fR .SH "ARGUMENTS" .TP \fB\fIdev\fB\fR 3c527 to build the ring for .SH "DESCRIPTION" .PP This initalises the on-card and driver datastructures to the point where \fBmc32_start_transceiver\fR can be called. .PP The card sets up the receive ring for us. We are required to use the ring it provides, although the size of the ring is configurable. .PP We allocate an sk_buff for each ring entry in turn and initalise its house-keeping info. At the same time, we read each 'next' pointer in our rx_ring array. This reduces slow shared-memory reads and makes it easy to access predecessor descriptors. .PP We then set the end-of-list bit for the last entry so that the card will know when it has run out of buffers.