Lines Matching defs:shares
51 * This function scans all the shares files under the mountpoint
52 * of the controller and returns the total added shares of all
72 * exclude the shares of default group. FLAG to ensure dir_pointer is non NULL
75 && (strcmp(fullpath, "/dev/cpuctl/cpu.shares") != 0)
76 && (strcmp(dir_pointer->d_name, "cpu.shares") == 0)) {
96 * search all groups recursively and get total shares
179 * Reads shares value from a given shares file and writes them to
186 unsigned int shares;
192 fscanf(fp, "%u", &shares);
197 return shares;
201 * writes value to shares file or pid to tasks file