Hi All, I have been working on developing virtio device drivers for dragonfly, especially for the block and the network devices.
When i build the module into a .ko, the target directory gets filled with a number of links like this : drwxr-xr-x 3 abhi abhi 4096 2010-05-21 22:06 . drwxr-xr-x 21 abhi abhi 4096 2010-05-21 21:59 .. lrwxrwxrwx 1 abhi abhi 43 2010-05-21 22:06 @ -> /usr/src/src/dragonfly/sys/dev/virtio/../.. -rw-r--r-- 1 abhi abhi 10756 2010-05-21 22:06 bus_if.h lrwxrwxrwx 1 abhi abhi 60 2010-05-21 22:06 cpu -> /usr/src/src/dragonfly/sys/dev/virtio/../../cpu/i386/include lrwxrwxrwx 1 abhi abhi 52 2010-05-21 22:06 cpu_base -> /usr/src/src/dragonfly/sys/dev/virtio/../../cpu/i386 -rw-r--r-- 1 abhi abhi 2075 2010-05-21 22:06 device_if.h drwxr-xr-x 3 abhi abhi 4096 2010-05-21 22:06 forwarder_i386 -rw-r--r-- 1 abhi abhi 3268 2010-05-21 21:59 if_test.c -rw-r--r-- 1 abhi abhi 3792 2010-05-21 22:06 if_test.o lrwxrwxrwx 1 abhi abhi 65 2010-05-21 22:06 machine -> /usr/src/src/dragonfly/sys/dev/virtio/../../platform/pc32/include lrwxrwxrwx 1 abhi abhi 57 2010-05-21 22:06 machine_base -> /usr/src/src/dragonfly/sys/dev/virtio/../../platform/pc32 -rw-r--r-- 1 abhi abhi 82 2010-05-21 21:59 Makefile -rw-r--r-- 1 abhi abhi 6692 2010-05-21 22:06 pci_if.h -rw-r--r-- 1 abhi abhi 3924 2010-05-21 22:06 test_pci.kld -rwxr-xr-x 1 abhi abhi 5437 2010-05-21 22:06 test_pci.ko a...@debian:/mnt/dfly/src/dragonfly/sys/dev/virtio$ And if i try to rebuild the module after some changes, it complains about not finding forwarder_i386 (broken link). Then I have to re-clean the directory, put the module code there and start over. Is it always the case that these links are made to the sys directories for compiling modules ? My module code is in the sys/dev directory in any case. Thanks, Abhishek.