A loadable kernel module for implementing priority queue. It is written for Ubuntu 20.04
with kernel 5.6.9
.
This repository is part of assignment-1 part-b of the couse CS60038 - Advances in Operating System Design.
-
Clone the repository
$ git clone https://github.com/utkarsh512/pqkmod
-
Build the kernel module and interactive runner
$ cd pqkmod $ make all $ gcc interactive_runner.c -o run
-
Load the module in kernel
$ sudo insmod pqkmod.ko
-
Run the interactive runner (for doing concurrency check, do this on multiple shell window)
$ ./run
-
For verbose, open a new shell window to view kernel logs as
$ cat /dev/kmsg
$ sudo rmmod pqkmod.ko
$ make clean