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

feat: eventfd crate & syscall #50

Merged
merged 4 commits into from
May 15, 2024

Conversation

binary-bruce
Copy link

@binary-bruce binary-bruce commented May 9, 2024

Extract the eventfd logic(reusable part) to crates to make the code more testable and composable.

Test evidence:
riscv
image

x86_64
image

@binary-bruce binary-bruce force-pushed the crate-eventfd branch 6 times, most recently from 363b2b5 to 5ca6612 Compare May 9, 2024 13:56
use core::convert::{From, Into};
use core::option::Option;
use core::option::Option::{None, Some};
use core::prelude::rust_2021::derive;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure why does the clippy ask me to import the above

Copy link

@Azure-stars Azure-stars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. If you has split the eventfd as a indendpent crate, then codes about this crate in ulib/axstarry/src/syscall_fs module may be updated to remove useless code.
  2. Maybe you need to squash your commit, for example the commit reorder

@binary-bruce
Copy link
Author

binary-bruce commented May 9, 2024

  1. If you has split the eventfd as a indendpent crate, then codes about this crate in ulib/axstarry/src/syscall_fs module may be updated to remove useless code.

  2. Maybe you need to squash your commit, for example the commit reorder

Hi @Azure-stars

  1. OK
  2. Squshed

Thanks.

@binary-bruce binary-bruce changed the title feat: eventfd crate feat: eventfd crate & syscall May 10, 2024
@Azure-stars Azure-stars merged commit b500a3f into Arceos-monolithic:main May 15, 2024
17 checks passed
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

Successfully merging this pull request may close these issues.

2 participants