My question is regarding usage of file descriptors in linux. My general understanding from answers here and here us the for each process/thread the opened files are maintained correspondingly.
However, if a file descriptor is returned from within the kernel code like what I have tried here what happens to the regular scheme of things? To which process would this descriptor belong? Is it even possible to do so?