Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 897 Bytes

README.md

File metadata and controls

46 lines (31 loc) · 897 Bytes

pqkmod

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.

Install, build and run!

  • 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

Removing module from kernel

$ sudo rmmod pqkmod.ko
$ make clean