Lines Matching refs:modinfo
65 static void print_info(struct modinfo *mi);
66 static void print_cinfo(struct modinfo *mi);
80 struct modinfo modinfo;
113 modinfo.mi_id = modinfo.mi_nextid = id;
114 modinfo.mi_info = (info_all) ? MI_INFO_ALL : MI_INFO_ONE;
117 modinfo.mi_info |= MI_INFO_CNT;
122 * If modinfo.mi_nextid == -1, get info about the
126 if (modctl(MODINFO, id, &modinfo) < 0) {
137 print_cinfo(&modinfo);
139 print_info(&modinfo);
144 id = modinfo.mi_id;
154 print_cinfo(struct modinfo *mi)
172 print_info(struct modinfo *mi)
226 fatal("usage: modinfo [-w] [-c] [-i module-id]\n");