Assignment7 - Assignment 7 Linux Device Driver Programming...

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

View Full Document Right Arrow Icon
Assignment 7 Linux Device Driver Programming CSCI 5103, Fall 2010 Due November 29, 2010 This assignment can be done in a group of up to three students. Part A : (20 points): In this problem you are asked to rewrite a small part of the scullpipe device driver code. Rewrite the scull_p_write function to perform synchronization using wait_event_interruptible function instead to prepare_to_wait and finish_wait functions. Note: The synchronization code to be modified appears in the function scull_getwritespace. Part B: (80 points): In this problem you are asked to implement a character device called scullbuffer implementing a bounded buffer of fixed size to synchronize any number of producer and consumer processes. It will implement the character device interface. Both producer and consumer processes will first call the open function to access the device. At end of their use of the device, they will call the release function. The buffer will store “items”, where each item will be a block of up to 512
Background image of page 1

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

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

Page1 / 2

Assignment7 - Assignment 7 Linux Device Driver Programming...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online