Carol Saparnis wrote: >I think I am doing something wrong, but I'm not sure what. I'm am trying to >write a very simple IOCTL module using kernel version 2.4.5 from TurboLinux. >I have included uaccess.h and I call the module copy_from_user. The module >compiles correctly, but when I do an insmod on it I get an "unresolved >symbol __copy_from_user_asm" message. I think, since it's really >copy_from_user in uaccess.h that calls __copy_from_user_asm, that the right >header file is being included, but I'm confused because that is the same >header file that defines __copy_from_user_asm. What do I need to do to >resolve that symbol?
Are you using the proper compile options? If you compile a module outside of the regular kernel build process, you need to make sure you use the correct compiler command line. In particular, your symptom might indicate that you are not using the -O2 compiler option, and therefore __copy_from_user_asm is not inlined as it is supposed to ... Bye, Ulrich -- Dr. Ulrich Weigand [EMAIL PROTECTED]
