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

Remove the use of bit field in structure. #326

Open
cathay4t opened this issue Mar 2, 2018 · 0 comments
Open

Remove the use of bit field in structure. #326

cathay4t opened this issue Mar 2, 2018 · 0 comments

Comments

@cathay4t
Copy link
Contributor

cathay4t commented Mar 2, 2018

Using bit field in structure is hard to maintain and might be an issue for big endian system.

I created some function for bit filed manipulation for nvme kernel.
Maybe we create something similar for our SCSI bit fileds.
The difference between NVMe and SCSI standard on using bit filed:

  • SCSI standard are using bytes numebr + bit number.
  • NVMe standard are using total bit range.
@cathay4t cathay4t self-assigned this Mar 2, 2018
@tasleson tasleson changed the title Remove the use of bit filed in structure. Remove the use of bit field in structure. Mar 21, 2018
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