Lecture 15: Wednesday, 24 July 2024

Announcements

  1. E2 due next week

  2. P2 due in two weeks


Review

  1. In L14 we covered:

    1. Extended file_operations with write(2), ioctl(2), and llseek(2)

    2. Introduced the jiffies counter and HZ constant

    3. Discussed the device class system and struct device

    4. Overview of MIDI and our simplification

    5. Worked through the design and implementation of kkey

    6. Listened to the sound of the kernel


Lecture overview

  1. Class files in sysfs

  2. Mutexes in the kernel

  3. Atomic types in the kernel

  4. Triggering a race

  5. Preventing the race


Slides

Character Devices 3


msg = (silence)
whoami = None
singularity v0.5 https://github.com/underground-software/singularity