MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sysctl_negminpct

Function sysctl_negminpct

freebsd/kern/vfs_cache.c:911–929  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

909}
910
911static int
912sysctl_negminpct(SYSCTL_HANDLER_ARGS)
913{
914 u_int val;
915 int error;
916
917 val = ncnegminpct;
918 error = sysctl_handle_int(oidp, &val, 0, req);
919 if (error != 0 || req->newptr == NULL)
920 return (error);
921
922 if (val == ncnegminpct)
923 return (0);
924 if (val < 0 || val > 99)
925 return (EINVAL);
926 ncnegminpct = val;
927 cache_recalc_neg_min(val);
928 return (0);
929}
930
931SYSCTL_PROC(_vfs_cache_param, OID_AUTO, negminpct,
932 CTLTYPE_INT | CTLFLAG_MPSAFE | CTLFLAG_RW, NULL, 0, sysctl_negminpct,

Callers

nothing calls this directly

Calls 2

sysctl_handle_intFunction · 0.85
cache_recalc_neg_minFunction · 0.85

Tested by

no test coverage detected