Lines Matching defs:stat
364 struct kld_file_stat stat;
367 stat.version = sizeof(struct kld_file_stat);
368 if (kldstat(fileid, &stat) < 0) {
378 entry = swrun_entry_find_by_index(NO_PID + 1 + stat.id);
381 entry = swrun_entry_create(NO_PID + 1 + stat.id);
387 kld_file_stat_to_swrun(&stat, entry);
432 struct kld_file_stat stat;
443 stat.version = sizeof(stat);
444 if (kldstat(entry->index - NO_PID - 1, &stat) == -1) {
453 kld_file_stat_to_swrun(&stat, entry);
476 struct kld_file_stat stat;
490 stat.version = sizeof(stat);
491 if (kldstat(entry->index - NO_PID - 1, &stat) == -1) {
509 if (stat.refs > 1)
513 if (kldunload(stat.id) == -1) {
515 stat.id, stat.name);