Skip to content

Latest commit

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages