Lines Matching refs:req
137 oid_sysctl(__unused struct sysctl_oid *oidp, __unused void *arg1, int arg2, struct sysctl_req *req)
145 error = IOStatistics::getStatistics(req);
148 error = IOStatistics::getWorkLoopStatistics(req);
151 error = IOStatistics::getUserClientStatistics(req);
629 int IOStatistics::getStatistics(sysctl_req *req)
636 assert(IOStatistics::enabled && req);
651 if (req->oldptr == USER_ADDR_NULL) {
652 error = SYSCTL_OUT(req, NULL, calculatedSize);
657 if (req->newptr != USER_ADDR_NULL) {
721 error = SYSCTL_OUT(req, buffer, calculatedSize);
730 int IOStatistics::getWorkLoopStatistics(sysctl_req *req)
737 assert(IOStatistics::enabled && req);
746 if (req->oldptr == USER_ADDR_NULL) {
747 error = SYSCTL_OUT(req, NULL, calculatedSize);
752 if (req->newptr != USER_ADDR_NULL) {
778 error = SYSCTL_OUT(req, buffer, size);
787 int IOStatistics::getUserClientStatistics(sysctl_req *req)
795 assert(IOStatistics::enabled && req);
804 if (req->oldptr == USER_ADDR_NULL) {
805 error = SYSCTL_OUT(req, NULL, calculatedSize);
810 if (!req->newptr || req->newlen < sizeof(requestedLoadTag)) {
815 SYSCTL_IN(req, &requestedLoadTag, sizeof(requestedLoadTag));
839 error = SYSCTL_OUT(req, buffer, sizeof(IOStatisticsUserClientHeader) + size);