DragonFly users List (threaded) for 2007-07
DragonFly BSD
DragonFly users List (threaded) for 2007-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Help with confusing C code in loader?


From: walt <wa1ter@xxxxxxxxxxxxx>
Date: Sun, 29 Jul 2007 17:22:19 -0700

I'm trying to debug a problem in /boot/loader but I'm stumped by
this line in sys/boot/common/module.c:

error = (file_formats[i]->l_load)(filename, loadaddr, &fp);

This seems to refer to a line in common/bootstrap.h:

int (* l_load)(char *filename, u_int64_t dest, struct preloaded_file **result);

And that's where I lose the thread.  I can't figure out what the
(* l_load) means because 'l_load' doesn't seem to be defined in
any obvious place.

Any clues most welcome.




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]