Changeset 902 in MondoRescue for branches/stable/mindi-busybox/modutils
- Timestamp:
- Oct 25, 2006, 12:41:23 AM (18 years ago)
- Location:
- branches/stable/mindi-busybox/modutils
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/stable/mindi-busybox/modutils/lsmod.c ¶
r821 r902 94 94 95 95 module_names = xmalloc(bufsize = 256); 96 if (my_query_module(NULL, QM_MODULES, (void **)&module_names, &bufsize, 97 &nmod)) { 96 if (my_query_module(NULL, QM_MODULES, &module_names, &bufsize, &nmod)) { 98 97 bb_perror_msg_and_die("QM_MODULES"); 99 98 } … … 112 111 bb_perror_msg_and_die("module %s: QM_INFO", mn); 113 112 } 114 if (my_query_module(mn, QM_REFS, (void **)&deps, &depsize, &count)) {113 if (my_query_module(mn, QM_REFS, &deps, &depsize, &count)) { 115 114 if (errno == ENOENT) { 116 115 /* The module was removed out from underneath us. */ -
TabularUnified branches/stable/mindi-busybox/modutils/modprobe.c ¶
r821 r902 689 689 if (!show_only) { 690 690 int rc2 = wait4pid(bb_spawn(argv)); 691 691 692 692 if (do_insert) { 693 693 rc = rc2; /* only last module matters */ … … 838 838 839 839 // process tail ---> head 840 rc = mod_process ( tail, 1 ); 840 if ((rc = mod_process ( tail, 1 )) != 0) { 841 /* 842 * In case of using udev, multiple instances of modprobe can be 843 * spawned to load the same module (think of two same usb devices, 844 * for example; or cold-plugging at boot time). Thus we shouldn't 845 * fail if the module was loaded, and not by us. 846 */ 847 if (already_loaded (mod) ) 848 rc = 0; 849 } 841 850 } 842 851 else
Note:
See TracChangeset
for help on using the changeset viewer.