Writing Device Drivers

Module Dependencies

If the driver module depends on symbols exported by another kernel module, the dependency can be specified by the -N option of ld. If the driver depends on a symbol exported by misc/foo, the example below should be used to create the driver binary. See also ld(1).

% ld -r -o xx xx1.o xx2.o -N misc/foo