On Wed, Jan 15, 2014 at 11:07 PM, patrick keshishian <[email protected]> wrote: ... > Now here, I need an expert's help. I must be looking at > this upside down or sideways, because I don't see where > ulpt_do_write() is called, well, it is called from ulptwrite() > (ulpt.c), but I can't find who, or where it gets called from. > Need a pointer here please.
ulptwrite is referenced via the d_write member for ulpt in the cdevsw array, and is thus invoked via spec_write() in kern/spec_vnops.c. (How does it get into cdevsw? Look for ulpt in sys/conf.h and in arch/*/*/conf.c; the latter uses the macros defined in the former.) Your other questions are out of my league; sorry. Philip Guenther
