开发者

How can I limit USB2.0 transfer rate on linux?

开发者 https://www.devze.com 2023-01-11 10:31 出处:网络
I have a simple project which can limit USB2.0 transfer rate on linux. With this program users can select any transfer speed they开发者_C百科 want, let say 10 Mbps. But I don\'t know where to start or

I have a simple project which can limit USB2.0 transfer rate on linux. With this program users can select any transfer speed they开发者_C百科 want, let say 10 Mbps. But I don't know where to start or what to do. I will be very glad if you have any idea. An useful library or function or whatever. Thanks in advance for any help.


If you want to limit GLOBAL USB2.0 rate on the whole system, then you must probably write a Linux Kernel module. Learning kernel programming is very hard and not something that is considered a "simple project".

If you want to do it for a simple application then just put some timers in the program that "throtte" data writing/reading according to user selection. Notice that this code has to be in the application itself.

0

精彩评论

暂无评论...
验证码 换一张
取 消