Comments (2)
Ensuring that 0 is passed to an ioctl that shouldn't take any argument seems to be a sane thing to do.
Using _IO*
when defining ioctl numbers is just a convention. There's a lot of (especially legacy) ioctls that don't follow it at all. On top of that there are _IO()
("none" as you call them) ioctls that actually write to userspace or read from userspace.
Are those impossible to use from Rust? That seems weird.
Is there no way in Rust to explicitly provide all arguments to an ioctl?
from raw-gadget.
Honestly I think that library is wrong (not to set the value explicitly to zero in case of "none"/_IO()
) and you're right. Thanks for clarifying!
from raw-gadget.
Related Issues (20)
- Document or change behavior with 0-length setup requests HOT 2
- Clean up request flags
- Fix dwc2 issuing disconnect instead of reset HOT 2
- Experiment with USB/IP as a loopback HCD/UDC
- Error redirection a usb device to a qemu virtual machine HOT 12
- Instructions for setting up Raw Gadget on popular boards
- Test Raw Gadget on OpenStick
- Proxy-based Raw Gadget tests
- Facedancer Error w/ Raw Gadget HOT 7
- Logitech webcam can not proxy with AristoChen/usb-proxy HOT 4
- Connect/disconnect in raw-gadget HOT 4
- Assorted raw_gadget.c clean-ups
- Support O_NONBLOCK I/O
- Support isochronous transfers
- Support USB 3 SuperSpeed
- device side resume signal HOT 1
- On a Raspberry Pi, follow these instructions. HOT 1
- Unable to compile raw-gadget HOT 1
- How to support option usb data in ep0 control command? HOT 14
- USB_RAW_IOCTL_EP_READ/USB_RAW_IOCTL_EP_WRITE maximum length = PAGE_SIZE HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raw-gadget.