ap_bonerror — register an error function
void ap_bonerror(BUFF *fb, void (*error) (BUFF *, int, void *),void *data)
When an error occurs on fb, error( ) is called with fb, the direction (B_RD or B_WR), and data.
fb
error( )
B_RD
B_WR
data