Skip to contentSkip to conversation

What's the difference between i_dev and i_rdev?

DISCUSSION Joseph D. Wagner 2 participants 2 messages Oct 3, 2003 – Oct 4, 2003 VFS

lore
Share & tools
lore
#0 lore raw

I'm looking at struct inode in include/linux/fs.h and I'm not sure of the purpose of, or difference between, i_dev and i_rdev.

The documentation I have says i_dev is "device number of the file" and i_rdev is "device at device files."

This isn't clear, and a brief explaination would be greatly appreciated.

Joseph D. Wagner

#1 lore raw
Quoted 2 lines · Joseph D. Wagner

I'm looking at struct inode in include/linux/fs.h and I'm not sure of the purpose of, or difference between, i_dev and i_rdev.

man 2 stat

Signature · 3 lines
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk