[Spice-devel] Usb redirection
Jackson
jyhyen at gmail.com
Mon Dec 17 18:06:22 PST 2012
> > And I print the data in usbredir_write_callback() &
usbredir_free_write_cb_data()
> > ...
> > write_data = 100
> > free_data = 100
> > write_data = 17
> > write_data = 17
> > write_data = 4
> > write_data = 5
> > write_data = 11
> > free_data = 17
> > free_data = 238(error)
> >
> What are these numbers you are printing? It would probably be more useful
> to print the data buffer pointer instead using %p.
>
write_data indicates that the parameter uint8_t *data are sent into int
usbredir_write_callback(void *user_data, uint8_t *data, int count).
And free_data indicates the parameter uint8_t *data are sent into void
usbredir_free_write_cb_data(uint8_t *data, void *user_data).
The address corresponds to the above data:
...
write_data = 06CA67A0
free_data = 06CA67A0
write_data = 06DD23C8
write_data = 06DD23C8
write_data = 06E137C8
write_data = 06E138E8
write_data = 06DD28C8
free_data = 06DD23C8
free_data = 06DD23C8(error)
More information about the Spice-devel
mailing list