i am using the getcwd() function to get the current path. this works fine in the user space but when used in a kernel module gives the error as implicit declaration of the function. i have tried using sys_getcwd which was defined in the implementation of getcwd(in linux/unistd.h) but then there is an error implicit declaration of getcwd Plzz let me know how to use the same.. plz help its a little urgent.. thank you asked 27 Feb '12, 06:01 bhushiman |
Because getcwd is not a Linux Kernel system call, it is part of the std C library. Get a book on Linux Kernel development, it can really help you out. If you do a Google search for Kernel module getcwd, you should find the help you need. You need to use d_path. answered 01 Mar '12, 08:30 Jim4Prez |