Lines Matching refs:p
1754 char* p; in uv_cpu_info() local
1831 p = buf + sizeof(model_marker) - 1; in uv_cpu_info()
1832 n = (int) strcspn(p, "\n"); in uv_cpu_info()
1836 p = memmem(parts, sizeof(parts) - 1, p, n + 1); in uv_cpu_info()
1837 if (p == NULL) in uv_cpu_info()
1838 p = "unknown"; in uv_cpu_info()
1840 p += n + 1; in uv_cpu_info()
1841 n = (int) strcspn(p, "\n"); in uv_cpu_info()
1846 found = !strncmp(p, *model, strlen(*model)); in uv_cpu_info()
1852 snprintf(*model, sizeof(*model), "%.*s", n, p); in uv_cpu_info()
1897 p = memcpy(*ci + n, models, sizeof(models)); in uv_cpu_info()
1907 .model = p + c->model * sizeof(*model), in uv_cpu_info()
2045 char* p; in uv__read_proc_meminfo() local
2051 p = strstr(buf, what); in uv__read_proc_meminfo()
2053 if (p == NULL) in uv__read_proc_meminfo()
2056 p += strlen(what); in uv__read_proc_meminfo()
2059 sscanf(p, "%" PRIu64 " kB", &rc); in uv__read_proc_meminfo()
2117 char* p; in uv__cgroup1_find_memory_controller() local
2120 p = strchr(buf, ':'); in uv__cgroup1_find_memory_controller()
2121 while (p != NULL && strncmp(p, ":memory:", 8)) { in uv__cgroup1_find_memory_controller()
2122 p = strchr(p, '\n'); in uv__cgroup1_find_memory_controller()
2123 if (p != NULL) in uv__cgroup1_find_memory_controller()
2124 p = strchr(p, ':'); in uv__cgroup1_find_memory_controller()
2127 if (p != NULL) { in uv__cgroup1_find_memory_controller()
2129 p = p + strlen(":memory:/"); in uv__cgroup1_find_memory_controller()
2130 *n = (int) strcspn(p, "\n"); in uv__cgroup1_find_memory_controller()
2133 return p; in uv__cgroup1_find_memory_controller()
2139 char* p; in uv__get_cgroup1_memory_limits() local
2144 p = uv__cgroup1_find_memory_controller(buf, &n); in uv__get_cgroup1_memory_limits()
2145 if (p != NULL) { in uv__get_cgroup1_memory_limits()
2147 "/sys/fs/cgroup/memory/%.*s/memory.soft_limit_in_bytes", n, p); in uv__get_cgroup1_memory_limits()
2151 "/sys/fs/cgroup/memory/%.*s/memory.limit_in_bytes", n, p); in uv__get_cgroup1_memory_limits()
2179 char* p; in uv__get_cgroup2_memory_limits() local
2183 p = buf + strlen("0::/"); in uv__get_cgroup2_memory_limits()
2184 n = (int) strcspn(p, "\n"); in uv__get_cgroup2_memory_limits()
2187 snprintf(filename, sizeof(filename), "/sys/fs/cgroup/%.*s/memory.max", n, p); in uv__get_cgroup2_memory_limits()
2189 snprintf(filename, sizeof(filename), "/sys/fs/cgroup/%.*s/memory.high", n, p); in uv__get_cgroup2_memory_limits()
2222 char* p; in uv__get_cgroup1_current_memory() local
2226 p = uv__cgroup1_find_memory_controller(buf, &n); in uv__get_cgroup1_current_memory()
2227 if (p != NULL) { in uv__get_cgroup1_current_memory()
2229 "/sys/fs/cgroup/memory/%.*s/memory.usage_in_bytes", n, p); in uv__get_cgroup1_current_memory()
2245 char* p; in uv__get_cgroup2_current_memory() local
2249 p = buf + strlen("0::/"); in uv__get_cgroup2_current_memory()
2250 n = (int) strcspn(p, "\n"); in uv__get_cgroup2_current_memory()
2253 "/sys/fs/cgroup/%.*s/memory.current", n, p); in uv__get_cgroup2_current_memory()
2555 const char *p; in uv__inotify_read() local
2572 for (p = buf; p < buf + size; p += sizeof(*e) + e->len) { in uv__inotify_read()
2573 e = (const struct inotify_event*) p; in uv__inotify_read()