Device number in stat command output

前端 未结 5 594
渐次进展
渐次进展 2020-12-09 18:19
  stat test.log 
  File: `test.log\'
  Size: 573         Blocks: 8          IO Block: 4096   regular file
Device: 804h/2052d  Inode: 7091301     Links: 1
Access: (06         


        
5条回答
  •  萌比男神i
    2020-12-09 18:52

    In this 804h specifies the major number i.e. to associate correct driver code and 2052d is minor number maps each driver to a specific device instance. MAJOR(), MINOR() macro be be used to get device major and minor number together they form device number.

提交回复
热议问题