Lines Matching defs:entry
51 * This structure is used to hold a SNMP table entry
89 * Returns the CPU usage of a given processor entry.
133 * Save a new sample to proc entry and get the average usage.
156 * Create a new entry into the processor table.
162 struct processor_entry *entry;
166 * If there is no map entry create one by creating a device table
167 * entry.
181 if ((entry = malloc(sizeof(*entry))) == NULL) {
186 memset(entry, 0, sizeof(*entry));
188 entry->index = map->hrIndex;
189 entry->load = 0;
190 entry->sample_cnt = 0;
191 entry->cur_sample_idx = -1;
192 entry->cpu_no = (u_char)cpu_no;
193 entry->frwId = &oid_zeroDotZero; /* unknown id FIXME */
195 INSERT_OBJECT_INT(entry, &processor_tbl);
198 entry->cpu_no, entry->index);
200 return (entry);
204 * Scan the device map table for CPUs and create an entry into the
214 struct processor_entry *entry;
238 if ((entry = proc_create_entry(cpu_no, map)) == NULL)
299 struct processor_entry *entry;
312 TAILQ_FOREACH(entry, &processor_tbl, link) {
314 save_sample(entry, &pcpu_cp_times[entry->cpu_no * CPUSTATES]);
388 struct processor_entry *entry;
393 if ((entry = NEXT_OBJECT_INT(&processor_tbl,
397 value->var.subs[sub] = entry->index;
401 if ((entry = FIND_OBJECT_INT(&processor_tbl,
407 if ((entry = FIND_OBJECT_INT(&processor_tbl,
422 assert(entry->frwId != NULL);
423 value->v.oid = *entry->frwId;
427 value->v.integer = entry->load;