Actions
Bug #5750
closedddi_ffs(9f)/ddi_fls(9f) are 64-bit aware
Start date:
2015-03-24
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
External Bug:
Description
The ddi_ffs(9f) man page considers both ddi_ffs() and ddi_fls() as 32-bit functions only:
PARAMETERS mask A 32-bit argument value to search through. ... RETURN VALUES 0 No bits are set in mask. N Bit N is the least significant (ddi_ffs) or most significant (ddi_fls) bit set in mask. Bits are numbered from 1 to 32, with bit 1 being the least significant bit position and bit 32 the most significant position.
But the implementation shows that both functions are 64-bit aware (they do accept 64-bit wide parameters, and return values up to 64 on 64-bit platforms). This needs to be carefully verified and the man page should be updated eventually.
Updated by Electric Monk over 2 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
git commit dca2b4edbfdf8b595d031a5a2e7eaf98738f5055
commit dca2b4edbfdf8b595d031a5a2e7eaf98738f5055 Author: Robert Mustacchi <rm@fingolfin.org> Date: 2021-01-25T15:30:51.000Z 5750 ddi_ffs(9f)/ddi_fls(9f) are 64-bit aware Reviewed by: Richard Lowe <richlowe@richlowe.net> Reviewed by: Andy Fiddaman <andy@omnios.org> Approved by: Gordon Ross <gordon.w.ross@gmail.com>
Actions