摘要 |
A computer program product comprising a computer useable medium including control logic stored therein to transfer data from a data source to a data sink is described herein. The computer program product comprises control logic means for negotiating with a device driver of the data sink to transfer data from the data source to the data sink, control logic means for allocating a first buffer to the data source, control logic means for locking the first buffer so as to enable only the data source to transfer data to the first buffer, control logic means for enabling the data source to transfer a predetermined amount of data to the first buffer, control logic means for signaling availability of data in the first buffer to the device driver of the data sink, control logic means for unlocking the first buffer, control logic means for granting access to the data sink to read from the first buffer, control logic means for allocating a second buffer to the data source, control logic means for locking the second buffer so as to enable only the data source to transfer data to the second buffer and control logic means for enabling the data source to write data to the second buffer while enabling the data sink to read data from the first buffer, thereby pipelining data transfer from the data source to the data sink.
|