zengguang

Results 13 comments of zengguang

@desowin maybe change the start type of the filter driver to "SERVICE_BOOT_START 0" could solve this problem. I'm develop a usb filter driver and test it in winToGo system, it...

> Can you reproduce this occurring? How? > > usbi_get_monotonic_time() is supposed to return monotonically increasing time. It should be impossible for a subsequent call to give an _earlier_ time....

[ 0.360327] [00571c28] libusb: error [darwin_reenumerate_device] zg: s(370548 950204000) e(370549 207573000) [ 0.360354] [00571c28] libusb: error [darwin_reenumerate_device] zg: delta_sec 1 delta_nsec -742631000 [ 0.360400] [00571c28] libusb: error [darwin_reenumerate_device] zg: fixed...

tv_nsec is not monotonically increasing; it is periodic, so the calculated delta_nsec can be negative.

With this implementation, although it avoids the somewhat unsightly logic of the if statement that checks for negative values, there is a potential risk of overflow for the unsigned long...

I found the TIMESPEC_SUB macro in libusbi.h. I'm going to use this macro for implementation instead. I'll verify it after 10 hours and then give feedback on the results at...

> Ah, I see what you mean now! Nice catch. > > Yes, using TIMESPEC_SUB is a good solution. > > We should probably also search the codebase for `tv_nsec`...

> > Ah, I see what you mean now! Nice catch. > > Yes, using TIMESPEC_SUB is a good solution. > > We should probably also search the codebase for...

@mcuee I need some help with reviewing the this PR. Thand you. This PR is not related to the platform.