Giter Club home page Giter Club logo

kernel2020hw1's Introduction

Use:
-d to delete entries; if name is specified, requires surname to be specified; ignores email and phone number arguments
-g to get entries; requieres surname to be specified; ignores email and phone number arguments
-i to insert entry; requires surname and name to be specified

-s to specify surname
-n to specify name
-t to specify phone number
-e to specify email

Arguments should be separated by space. Arguments should not be longer than 64. Order is not important. If option or value is specified more than once, the last one is used.

Examples
echo "-g -s Ainsworth" > /dev/path_to_device
will set the device to return information for all entries with Ainsworth surname.

echo "-d" > /dev/path_to_device
will erase all entries.

echo "-s Sur -e email -n Name -i -t 2341241242--3" > /dev/path_to_device
Will create an entry for Sur Name with email and phone number specified or overwrite email and phone number values, should Sur Name entry already exist.

You can open the device on /some/path/to/device by executing "mknod /some/path/to/device c major_number 0" where major_number is a number you can see in "tchardev device major number" row in dmesg after module is inserted into kernel.

You can read from the device using "cat /some/path/to/device".

kernel2020hw1's People

Contributors

eagritsenko avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.