1
0
mirror of https://github.com/0xAX/linux-insides.git synced 2024-12-22 14:48:08 +00:00

Merge pull request #661 from emacsliu/Cgroups-fix

fix the ambiguous sentence
This commit is contained in:
0xAX 2019-03-12 12:24:18 +06:00 committed by GitHub
commit 88fcfc3c72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ Let's go step by step through this line. The first `c` letter represents type of
crw-rw-rw- 1 root tty 5, 0 Dec 3 22:48 /dev/tty crw-rw-rw- 1 root tty 5, 0 Dec 3 22:48 /dev/tty
``` ```
see the first `c` letter in a permissions list. The second part is `5:0` is minor and major numbers of the device. You can see these numbers in the output of `ls` too. And the last `w` letter forbids tasks to write to the specified device. So let's start the `cgroup_test_script.sh` script: see the first `c` letter in a permissions list. The second part is `5:0` is major and minor numbers of the device. You can see these numbers in the output of `ls` too. And the last `w` letter forbids tasks to write to the specified device. So let's start the `cgroup_test_script.sh` script:
``` ```
~$ ./cgroup_test_script.sh ~$ ./cgroup_test_script.sh
@ -213,7 +213,7 @@ Control group /:
│ └─6404 /bin/bash │ └─6404 /bin/bash
``` ```
Now we know a little about `control groups` mechanism, how to use it manually and what's purpose of this mechanism. Time to look inside of the Linux kernel source code and start to dive into implementation of this mechanism. Now we know a little about `control groups` mechanism, how to use it manually and what's purpose of this mechanism. It's time to look inside of the Linux kernel source code and start to dive into implementation of this mechanism.
Early initialization of control groups Early initialization of control groups
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------