Skip to content
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

Alias support #19

Open
3 tasks
lu-zero opened this issue Dec 19, 2021 · 0 comments
Open
3 tasks

Alias support #19

lu-zero opened this issue Dec 19, 2021 · 0 comments

Comments

@lu-zero
Copy link
Collaborator

lu-zero commented Dec 19, 2021

See https://github.com/rust-italia/mdev/blob/master/src/bin/mdev.rs#L146

mdevd does this way

  • Expand aliases terminating in / by appending the kernel device name to it. e.g.: >alias/ -> >alias/nodename are equivalent.
  • Either replace the devname or create a symlink to it.
  • Support not creating the device.

Examples:

loop([0-9]+)       root:disk 660 >loop/%1
adsp        root:audio 660 >sound/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant