Skip to content

Commit c0a25c0

Browse files
committed
chapter/io: Restructure IO chapter
This commit restructures the IO chapter according to OpenEdu methodology. This comprises of: - refactoring and changing the order of chapters - generating support files from solution - breaking arena into smaller sections - fixing Makefiles from tasks to be self-contained Signed-off-by: Mihnea Firoiu <[email protected]> Signed-off-by: Alex Apostolescu <[email protected]> solve checkpatch
1 parent e041954 commit c0a25c0

File tree

554 files changed

+10176
-13904
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

554 files changed

+10176
-13904
lines changed

.github/labeler.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ topic/compute:
88
- 'chapters/compute/**/*'
99

1010
topic/io:
11-
- 'content/chapters/io/**/*'
11+
- 'chapters/io/**/*'
1212

1313
topic/app-interact:
1414
- 'content/chapters/app-interact/**/*'

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"editor.formatOnSave": false
3+
}

chapters/compute/copy-on-write/drills/tasks/shared-memory/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Shared Memory
22

3-
As you remember from the [Data chapter](reading/process-memory.md#memory-mapping), one way to allocate a given number of pages is to use the `mmap()` syscall.
3+
As you remember from the [Data chapter](../../../../../data/process-memory/reading/process-memory.md), one way to allocate a given number of pages is to use the `mmap()` syscall.
44
Let's look at its [man page](https://man7.org/linux/man-pages/man2/mmap.2.html), specifically at the `flags` argument.
55
Its main purpose is to determine the way in which child processes interact with the mapped pages.
66

@@ -10,10 +10,10 @@ Now let's test this flag, as well as its opposite: `MAP_SHARED`.
1010
Compile and run the code in `shared-memory/support/shared_memory.c`.
1111

1212
1. See the value read by the parent is different from that written by the child.
13-
Modify the `flags` parameter of `mmap()` so they are the same.
13+
Modify the `flags` parameter of `mmap()` so they are the same.
1414

1515
1. Create a semaphore in the shared page and use it to make the parent signal the child before it can exit.
16-
Use the API defined in [`semaphore.h`](https://man7.org/linux/man-pages/man0/semaphore.h.0p.html).
16+
Use the API defined in [`semaphore.h`](https://man7.org/linux/man-pages/man0/semaphore.h.0p.html).
1717

1818
**Be careful!**
1919
The value written and read previously by the child and the parent, respectively, must not change.

chapters/compute/copy-on-write/drills/tasks/shared-memory/solution/utils/sock/sock_util.c

-114
This file was deleted.

chapters/compute/copy-on-write/drills/tasks/shared-memory/solution/utils/sock/sock_util.h

-34
This file was deleted.

chapters/compute/copy-on-write/drills/tasks/shared-memory/support/utils/sock/sock_util.c

-114
This file was deleted.

chapters/compute/copy-on-write/drills/tasks/shared-memory/support/utils/sock/sock_util.h

-34
This file was deleted.

0 commit comments

Comments
 (0)