Skip to content

Nathanawaring/Bar-Module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

File Listing

Part 3 – Bar Management System Module

  • bar_module.c – Core kernel module for handling bar operations and /proc/bar_status.
  • bar_module.h – Header file with exported functions and struct definitions.
  • test_bar_module.c – Simple test case (one group).
  • test_bar_module_2.c – Multi-group test case with seating and cleaning logic.
  • test_bar_module_3.c – Edge-case test: reopening, timeouts, oversize group.
  • Makefile – Builds all kernel modules for Part 3.

How to Compile and Run

Part 3 - Bar Management

cd part3/ make sudo insmod bar_module.ko

watch -n 1 cat /proc/bar_status

sudo insmod test_bar_module.ko sudo insmod test_bar_module_2.ko sudo insmod test_bar_module_3.ko

sudo rmmod test_bar_module_3 sudo rmmod test_bar_module_2 sudo rmmod test_bar_module sudo rmmod bar_module

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors