swapctl(SC_LIST) allocation nihilism
The swapctl (and swapctl32) functions in the kernel allow, amongst other things, the return of the current list of attached swap files. In the event that none are attached swapctl allocates anyway, but with a size of zero. To minimize potential programmer errors, we short circuit the rest of the logic in this case.
Updated by Electric Monk over 5 years ago
- Status changed from New to Closed
commit e1936e201a9a6139df26cffebf1de54d1ab41369 Author: Joshua M. Clulow <email@example.com> Date: 2017-01-04T06:01:26.000Z 7511 swapctl(SC_LIST) allocation nihilism Reviewed by: Robert Mustacchi <firstname.lastname@example.org> Approved by: Richard Lowe <email@example.com>