I'm working on a kernel module and I'm trying to uniquely identify each one of the users trying to open() the module (can be either processes or threads).
What is the best way to identify them? Is there an ID I can get from a system call?
I wish to get all users in a list that specifies whether they're trying to open the module for read/write, and I need to know which one tried acting.