Git Product home page Git Product logo

lkddb-query's Introduction

lkddb-query

This is a small hacked together script that will parse the LKDDb database and print the kernel configuration details to stdout

This was created to have a quick way to easily get the definition for a specific Linux kernel configuration option on the command line

Clone

git clone --recurse-submodules https://github.com/droogie/lkddb-query

Usage

$ ./lkddb-query -h                          
usage: lkddb-query [-h] config_var

Parse an LKDDb for a specific Linux Kernel configuration option for details

positional arguments:
  config_var  Example: CONFIG_DEFAULT_MMAP_MIN_ADDR

options:
  -h, --help  show this help message and exit
$ ./lkddb-query CONFIG_DEFAULT_MMAP_MIN_ADDR
CONFIG_DEFAULT_MMAP_MIN_ADDR: Low address space to protect from user allocation

This is the portion of low virtual memory which should be protected
from userspace allocation.  Keeping a user from writing to low pages
can help reduce the impact of kernel NULL pointer bugs.

For most ia64, ppc64 and x86 users with lots of address space
a value of 65536 is reasonable and should cause no problems.
On arm and other archs it should not be higher than 32768.
Programs which use vm86 functionality or have some need to map
this low address space will need CAP_SYS_RAWIO or disable this
protection by setting the value to 0.

This value can be changed after boot using the
/proc/sys/vm/mmap_min_addr tunable.

LKDDb

LKDDb (Linux Kernel Driver DataBase) is an attempt to build a comprensive database of hardware and protocols know by Linux kernels. The driver database includes numeric identifiers of hardware, the kernel configuration menu needed to build the driver and the driver filename. The database is build automagically from kernel sources, so it is very easy to have always the database updated.

The database provided in this repository was generated against Linux 5.17-rc8. Refer to the llkdb repository for instructions on building a new database. This script is essentially a stripped down version of gen-web-lkddb.py but simply prints the description and help text for whichever configuration option queried.

lkddb-query's People

Contributors

droogie avatar

Stargazers

Enrique Elias Nissim avatar

Watchers

 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.