| 9400 | |
| 9401 | |
| 9402 | static void receive_queued_packet(rem_port* port, USHORT id) |
| 9403 | { |
| 9404 | /************************************** |
| 9405 | * |
| 9406 | * r e c e i v e _ q u e u e d_ p a c k e t |
| 9407 | * |
| 9408 | ************************************** |
| 9409 | * |
| 9410 | * Functional description |
| 9411 | * We're marked as having pending receives on the |
| 9412 | * wire. Grab the first pending receive and return. |
| 9413 | * |
| 9414 | **************************************/ |
| 9415 | // Trivial case, nothing pending on the wire |
| 9416 | |
| 9417 | if (!port->port_receive_rmtque) |
| 9418 | { |
| 9419 | return; |
| 9420 | } |
| 9421 | |
| 9422 | // Grab first queue entry |
| 9423 | |
| 9424 | rmtque* que_inst = port->port_receive_rmtque; |
| 9425 | |
| 9426 | // Receive the data |
| 9427 | |
| 9428 | (que_inst->rmtque_function) (port, que_inst, id); |
| 9429 | } |
| 9430 | |
| 9431 | |
| 9432 | static void enqueue_receive(rem_port* port, |
no outgoing calls
no test coverage detected