All of lore.kernel.org
 help / color / mirror / Atom feed
* Proper way to get device file minor number from struct file
@ 2016-07-10 15:22 Matwey V. Kornilov
  2016-07-10 16:02 ` Bjørn Mork
  0 siblings, 1 reply; 2+ messages in thread
From: Matwey V. Kornilov @ 2016-07-10 15:22 UTC (permalink / raw)
  To: kernelnewbies

Hello,

I am looking through some legacy out of tree custom linux kernel device
driver.

It is full of lines like the following:

iminor(fp->f_dentry->d_inode)

here struct file *fp is an argument of callback of struct file_operations.

Documentation/filesystems/porting says:

"f_dentry is gone; use f_path.dentry, or, better yet, see if you can
avoid it entirely"

So, is there a proper compatible way to do the same?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-10 16:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-10 15:22 Proper way to get device file minor number from struct file Matwey V. Kornilov
2016-07-10 16:02 ` Bjørn Mork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.