第十二章

第十二章

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
第第第第 第第第第第第第第第 第第第第第第“Linux 第第第第”第“第第第第第第第第”第第第第第第第第Unix 第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第——第第第第第第第第第第第第第第第第第第第第第 第第第第第第第第第第第第第第第第第第第第第第第第第第第第第“第第第Sector第”第第第第“第”第第第第第第第第第第第第第第第第第第第 1KB 第第第第第第第第第第第第 512 第第第 第第第第第第第第第第第第第第第第第第第第第第第第 sbull 第Simple Block Utility for Loading Localities第第第第第第第第第 scull 第第第第第第第第第第第第第第 第第第第第第第第第第第第第第第 RAM-disk 第第第第第第 sbull 第第第第第 Linux 第第第第第第第第第第第第第第第第第第第第第第第第第第 注注注注注注 第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第 int register_blkdev(unsigned int major, const char*name, struct file_operations *fops) int unregister_blkdev(unsigned int major, const char*name)第 第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第 sbull 第第第 scull 第第第第第第第第 result=register_blkdev(sbull_major,“sbull”第$sbull_fops); if(result<0){ printk(KERN_WARNING“sbull:can’t get major %d\n”,sbull_major); return result; } if (sbull_major==0) sbull_major=result; /*dynamic*/ major=sbull_major; /*Use “major”later on to save typing*/ register_blkdev 第 fops 第第第第第第第第第第第第第第第第第第第第第第 read write 第第 fsync 第第第第第第第第第第第第第第第第第第第第 b lock_read , block_write block_fsync 第第第第第第第第第第第第第第第第第第第第第第 check_media_change revalidate 第第第第第第第第第第第第第第第第第 sbull_fops 第第第第 sbull 第第第第 fops 第第第第第 第第第 236第 第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第 第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第fops 第第第第 read write 第第第第第第第第第第第第第第第第第第第第第第第 blk_dev_struct 第第第第第第第第第第第第第第 第第第第第<linux/blkdev.h>第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第第 2.0 第第第第第 第第第 237第
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern