You can use the filp_open function, but as pointed out in the comment on the function, opening files in the kernel module is not what you want to do.
Here is a function that will return a struct file for your path. From there i think you can go to inode
Bonus: Perhaps this is not what you intend to do, but here is an article about reading / writing files from the kernel, and why you do not want to do this.
source share