'Kernel space fcntl() equivalent
I’ve been learning a bit more about LKMs, and I was trying to use fcntl() in this space to get flags associated with a file descriptor. But since this is in kernel space, I assumed we could use sys_fcntl(). When I try this, it says that symbol is undefined.
Is this symbol not exported, or is there another call I should use to get flags (O_CREAT, O_TMPFILE, etc.)? I only have the file descriptor, which is why I thought fcntl(fd, F_GETFL).
Thanks for any help!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
