You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sebastian Fricke 2cff4abf08 Gitbook Links: replace old links with new ones
The old links didn't point to valid locations.
Replace the old links with the new links and test those changes with a
small script: https://github.com/initBasti/markdown_link_check .

______________________________________________________________

In order to find and replace the links, I used the following commands:

grep -rwohP '.' -e "\(https\:\/\/0xax.gitbooks.io\/\S*\)" > links.txt
(Find all links recursivly in the project directories and print out the
 only the matches links)

Within links.txt:
Remove the '(' & ')' => :%s/\(//g  and :%s/\)//g
Remove duplicates => :sort u

Test if the links work with:
python3 md_link_check.py --pattern 0xax.gitbook --output-file bad.txt
(https://github.com/initBasti/markdown_link_check)

Create replace commands:
:%s/.*/grep -rl & '.' | xargs sed -i 's#&##g'
Enter replacement URL between the 2nd & 3rd '#'
Execute commands: :w !sh

Signed-off-by: Sebastian Fricke <sebastian.fricke.linux@gmail.com>
4 years ago
..
README.md fix links in SyncPrim/README.md 6 years ago
linux-sync-1.md Gitbook Links: replace old links with new ones 4 years ago
linux-sync-2.md Gitbook Links: replace old links with new ones 4 years ago
linux-sync-3.md Gitbook Links: replace old links with new ones 4 years ago
linux-sync-4.md Gitbook Links: replace old links with new ones 4 years ago
linux-sync-5.md Gitbook Links: replace old links with new ones 4 years ago
linux-sync-6.md Gitbook Links: replace old links with new ones 4 years ago

README.md

Synchronization primitives in the Linux kernel.

This chapter describes synchronization primitives in the Linux kernel.

  • Introduction to spinlocks - the first part of this chapter describes implementation of spinlock mechanism in the Linux kernel.
  • Queued spinlocks - the second part describes another type of spinlocks - queued spinlocks.
  • Semaphores - this part describes implementation of semaphore synchronization primitive in the Linux kernel.
  • Mutual exclusion - this part describes - mutex in the Linux kernel.
  • Reader/Writer semaphores - this part describes special type of semaphores - reader/writer semaphores.
  • Sequential locks - this part describes sequential locks in the Linux kernel.