Where close library is?

HI i am doing a kernel module for AMILDA. I have already compiled it an used it . All works fine but now that i have just added more functionality I have a problem. I am willind to use the close function but the compiler refuses to accept me that function

Re: Where close library is?

HIThx for ur advice, but i think that i'm not messing up(imho) the kernel API with the C api.The close function i am using i got it from a kernel module code from Alessandro Rubini that he uses in replace of daemonize

/* close open files as well (stdin/out/err) are most likely open */ for (i=255; i>=0; i--) if (current->files->fd[i]) close(i); debug_print("Daemonized: OK\n");

Also thx for telling me i must use mips instead of alpha. I was messing that. I thought i could use it anyway.Nonetheless I was using asm-alpha/unistd.h as an example cuz in asm-mips the close function implementation that i'm looking for it doesn't exist.

Re: Where close library is?

Hi

If the mips directory doesn't contain that call, then it isn't available in the mips platform. Don't forget that not all of the functions found in the kernel includes are for usage inside the kernel. Don't ask me what functions should be used and which don't, as i'm not a kernel specialist (just a newbie in device drivers development).