Lines Matching defs:cached
17 static struct cgroupfs_cache_entry *cached;
27 if (cached && !strcmp(cached->subsys, subsys)) {
28 if (strlen(cached->mountpoint) < maxlen) {
29 strcpy(buf, cached->mountpoint);
94 if (!cached)
95 cached = calloc(1, sizeof(*cached));
97 if (cached) {
98 strncpy(cached->subsys, subsys, sizeof(cached->subsys) - 1);
99 strcpy(cached->mountpoint, mountpoint);