1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:47:34 +00:00

Base: Use new global variables at /sys/kernel/ directory

This commit is contained in:
Liav A 2022-10-14 21:52:09 +03:00 committed by Andrew Kaster
parent 9d1ba0e6ad
commit 1c5e09f789
4 changed files with 5 additions and 5 deletions

View file

@ -28,12 +28,12 @@ If no *path* argument is provided stdin is used.
```sh
# Pretty-print stdin
$ cat /proc/all | json
$ cat /sys/kernel/processes | json
# Pretty-print a file
$ json json-data.json
# Pretty-print a file with two spaces per indent
$ json -i 2 json-data.json
# Query data from JSON
$ json -q 1 .config/CommonLocations.json
$ cat /proc/all | json -q processes
$ cat /sys/kernel/processes | json -q processes
```

View file

@ -11,7 +11,7 @@ $ profile [-p PID] [-a] [-e] [-d] [-f] [-w] [-c command] [-t event_type]
## Options:
* `-p PID`: Target PID
* `-a`: Profile all processes (super-user only), result at /proc/profile
* `-a`: Profile all processes (super-user only), result at /sys/kernel/profile
* `-e`: Enable
* `-d`: Disable
* `-f`: Free the profiling buffer for the associated process(es).

View file

@ -78,7 +78,7 @@ has set up before booting the Kernel, don't initialize any driver.
* **`nvme_poll`** - This parameter configures the NVMe drive to use polling instead of interrupt driven completion.
* **`system_mode`** - This parameter is not interpreted by the Kernel, and is made available at `/proc/system_mode`. SystemServer uses it to select the set of services that should be started. Common values are:
* **`system_mode`** - This parameter is not interpreted by the Kernel, and is made available at `/sys/kernel/system_mode`. SystemServer uses it to select the set of services that should be started. Common values are:
- **`graphical`** (default) - Boots the system in the normal graphical mode.
- **`self-test`** - Boots the system in self-test, validation mode.
- **`text`** - Boots the system in text only mode. (You may need to also set **`graphics_subsystem_mode=off`**.)

View file

@ -37,7 +37,7 @@ Additionally, the name `defaults` is accepted and ignored.
* `/etc/fstab` - read by `mount -a` on startup to find out which filesystems to mount.
* `/etc/fstab.d` - directory with drop-in additions to the normal `fstab` file, also read by `mount -a`.
* `/proc/df` - read by `mount` to get information about mounted filesystems.
* `/sys/kernel/df` - read by `mount` to get information about mounted filesystems.
## Examples