-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add contents of linux/can/bcm.h
#4683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
src/new/linux_uapi/linux/can/bcm.rs
Outdated
pub const TX_SETUP: crate::__u32 = 1; | ||
pub const TX_DELETE: crate::__u32 = 2; | ||
pub const TX_READ: crate::__u32 = 3; | ||
pub const TX_SEND: crate::__u32 = 4; | ||
pub const RX_SETUP: crate::__u32 = 5; | ||
pub const RX_DELETE: crate::__u32 = 6; | ||
pub const RX_READ: crate::__u32 = 7; | ||
pub const TX_STATUS: crate::__u32 = 8; | ||
pub const TX_EXPIRED: crate::__u32 = 9; | ||
pub const RX_STATUS: crate::__u32 = 10; | ||
pub const RX_TIMEOUT: crate::__u32 = 11; | ||
pub const RX_CHANGED: crate::__u32 = 12; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the c_enum!
macro since the source is an enum
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original enum has no name, though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added anonymous enum support to c_enum!
, though I totally get if you'd rather that be split to another PR.
1e87439
to
09d4fa2
Compare
09d4fa2
to
f5e5bdc
Compare
@rustbot label -S-waiting-on-author +S-waiting-on-review |
Description
There's already
can::{raw, j1939}
, and this addsbcm
.Sources
https://github.com/torvalds/linux/blob/b320789d6883cc00ac78ce83bccbfe7ed58afcf0/include/uapi/linux/can/bcm.h
Checklist
libc-test/semver
have been updated*LAST
or*MAX
areincluded (see #3131)
cd libc-test && cargo test --target mytarget
);especially relevant for platforms that may not be checked in CI
@rustbot label +stable-nominated