libstoragemgmt icon indicating copy to clipboard operation
libstoragemgmt copied to clipboard

Remove the use of bit field in structure.

Open cathay4t opened this issue 7 years ago • 0 comments

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 avatar Mar 02 '18 14:03 cathay4t