Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PreRequiste task for vicharak kernel dev role

CHANGELOG:

  • Utilized kfifo for the circular buffer.
  • created a character device /dev/ankit
  • change data structure of struct data->data to static char array with size of 128 bytes, to make it less error prone and production use.
  • add mutex locks for handling concurrency.

demo

Build the kernel Module and Install

cd kernel_space/
make
sudo insmod ioctl_kfifo.ko

Build the userspace

cd user_space/

gcc -o configurator configurator.c
gcc -o filler filler.c
gcc -o reader reader.c

Run userspace code in Order

sudo -s

./configurator
./filler
./reader

About

PreRequiste task for vicharak kernel dev role

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages