HomeFreeBSD

Move inner loop logic out of sysctl_sysctl_next_ls().

Description

Move inner loop logic out of sysctl_sysctl_next_ls().

Refactor sysctl_sysctl_next_ls():

  • Move huge inner loop out of sysctl_sysctl_next_ls() into a separate non-recursive function, returning the next step to be taken.
  • Update resulting node oid parts only on successful lookup
  • Make sysctl_sysctl_next_ls() return boolean success/failure instead of errno, slightly simplifying logic

Reviewed by: freqlabs
Differential Revision: https://reviews.freebsd.org/D27029

Details

Provenance
melifaroAuthored on
Reviewer
freqlabs
Differential Revision
D27029: Move inner loop logic out of sysctl_sysctl_next_ls()
Parents
rS368198: Renumber NHR_* flags after NHR_IFAIF removal in r368127.
Branches
Unknown
Tags
Unknown