linux simple Character driver
Please write a simple character device driver module that performs the basic open/read/write/ioctl/close operations. You will write two programs (1) Linux Kernel module that implements the basic character device driver functions (2) A user program that use the module you wrote. Module should perform the following operations. * Init Module - Allocate a Buffer of size 1024 bytes * Remove Module - Free the buffer you allocated in Init Module * Open - Initialize the buffer to a known text . Say "Welcome to UCSC Second Assignment" * Close - Initialize the buffer to empty string. Simply wipe out the contents * Read - Return the contents of the buffer, which will be printed from the user program * Write - User program provides the string to update the buffer and module has to overwrite the previous contents with the new string just received from user program * unlocked_ioctl - (1) From user program read the size (number of characters) of the string. (2) Reinitialize the buffer to "Welcome to UCSC Second Assignment" User Program: * Open the module file descriptor * ioctl - Find the size of default string * Read the string and print it * Write a new string "String updated" * Read the string and print it again * ioctl - Find the size of string * ioctl - Reinitialize the buffer * Read the string and print it again * Close the module file descriptor What to submit: * module source * user program source * Makefile