Skip to content

stephentth/moonphase_kernel_module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

moonphase linux kernel module

A loadable kernel module for Linux that provides the functionality to display the current moon phase through a character device (/dev/moonphase).

Disclaimer: Moon phase calculation function may be inaccurate. Not intended for astrogation, or for treatment or management of lycanthropy.

Build

make

Usage

# install module
$ sudo insmod moonphase.ko

$ cat /dev/moonphase          
Waning Crescent Moon 🌘
            .----------.            
        .--'   o    .   `--.        
      .'@  @@@@@@ O   .   . `.      
    .'@@  @@@@@@@@   @@@@   . `.    
  .'    . @@@@@@@@  @@@@@@    . `.  
 / @@ o    @@@@@@.   @@@@    O   @\ 
 |@@@@               @@@@@@     @@| 
/ @@@@@   `.-.    . @@@@@@@@  .  @@\
| @@@@   --`-'  .  o  @@@@@@@      |
|@ @@                 @@@@@@ @@@   |
\      @@    @   . ()  @@   @@@@@  /
 |   @      @@@         @@@  @@@  | 
 \  .   @@  @\  .      .  @@    o / 
  `.   @@@@  _\ /     .      o  .'  
    `.  @@    ()---           .'    
      `.     / |  .    o    .'      
        `--./   .       .--'        
            `----------'            


# unload module
$ sudo rmmod moonphase

About

linux kernel module provides a device /dev/moonphase to display the current moon phase

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published