Viller Hsiao
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
1
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
[讀書會] Linux環境編程:從應用到內核 === ###### tags: `twlkh`, `study-group` # 書目及相關資源 * 書目: * [樣本電子書(含第一章)](https://docs.google.com/viewer?a=v&pid=forums&srcid=MTY5NzU4NjA5MDQ3NzkxOTM1MzIBMDUzMDc0Nzc1MzE3NDgyNjc3ODcBZ3ZBUHZWMjRCd0FKATAuMQEBdjI) * [電子書(中國亞馬遜)](https://www.amazon.cn/gp/product/B01H1RZTIM/ref=ox_sc_sfl_title_1?ie=UTF8&psc=1&smid=A1AJ19PSB66TGU) * [電子書(多看閱讀)](http://www.voy.com/245963/) * 書店狀況 * 實體書店:大享書局/天瓏門市/若水堂。由於門市有時需要訂貨,建議在去門市前可以先電話詢問看看 * 網路書店:淘寶、露天等 * 範例程式:[github.com/gfreewind/aple_codes](https://github.com/gfreewind/aple_codes) * 作者討論群組:[《linux环境编程》讨论组 ](https://groups.google.com/forum/#!forum/linux_aple) * [勘誤表](https://groups.google.com/forum/#!topic/linux_aple/dUMhLrMK3gI) # 前言 Miller Lee: 最近有本 `Linux 環境編程` 我覺得那本不錯,就我的經驗 kernel 本身因為要支援上層 API,所以 code 會混雜很多上層的功能,從 POSIX API 入門的話,我覺得應該會是比較好的方法! 可以把書中幾個沒有解釋清楚的點配合POSIX每個禮拜或每兩個禮拜大家可以好好見面討論(可能北車最方便??) 像是第一章提到當 read 的 size 比 buffer size 大到時候 read 可能會回傳或是 block。這樣可以對照 source code 看是那些 socket 有這樣的行為還有 POSIX 是怎麼定義的 另外第一章可以跟 Linux Kernel Development 的 VFS 參照。 # 有興趣一起加入閱讀報告的勇者 [Miller Lee](https://www.facebook.com/win.lee.39566/about) [Mike Shang](https://www.facebook.com/mshang816/about) [Waylin Ch](https://www.facebook.com/waylin.ch/about) [Viller Hsiao](https://www.facebook.com/villerhsiao/about) (villerhsiao at gmail.com) [Wen Liao](https://www.facebook.com/satoshi.liao.5/about) [Scott Tsai](https://www.facebook.com/scottt.tw/about) [Clay Chang](https://www.facebook.com/clay.chang/about) [SZ Lin](https://www.facebook.com/lock.lin711/about) [Jian-Hong Pan(StarNight)](https://www.facebook.com/chienhung.pan/about) [Winfred Lu](https://www.facebook.com/winfred.lu.9/about) [Gavin Guo](https://www.facebook.com/profile.php?id=1782064975&sk=about&__mref=message) [MingChia Chung (Quexint)](https://www.facebook.com/mingchia.chung) [Yen-Kuan Wu](https://www.facebook.com/profile.php?id=100002466873353&sk=about) # 分享形式 * 基本上預設大家事前都已經看了相關章節(?)。形式可以是 * 一個人報告之後討論 或是 * 不只一人,主講人 + 有意願延伸分享的人 + 討論。(超過一個人大家可能要商量控制一下時間) * 有特定內容想分享,或是有問題想討論的人,事前將大綱在「類似會議記錄的文件」中寫下來。 * 大家自行認領(請在章節名單後面填上您的大名) * 視訊會議,過程會有錄影或錄音之後會上傳 [社群 youtube 頻道](https://www.youtube.com/channel/UCzv1VG_o1MoQCA1G0uixMaA)。 # 版權 * 本次讀書會相關衍生資料(線上筆記與錄音錄影與討論內容),除特別聲明外,經當事人同意,皆採 [CC-BY](https://creativecommons.org/licenses/by/3.0/tw/) 授權。 * 外部索引資料之版權屬原著作人所有。 # 活動 ## 第1章 * 主題:文件I/O * 時間:9/8 2016 7:00 pm * 導讀:Wen Liao * [筆記與討論區](https://docs.google.com/document/d/1k1KZmkQtUebfNZ9-oo7flmQ7cc6DsHpRi5nMhMlA2wQ/edit?usp=sharing) ([chat log](https://docs.google.com/document/d/1LqxmygFcPv-MtU1yNqMpXG5uwyxW25aq8_riZOZnuvM/edit?usp=sharing), [後半錄音](https://www.youtube.com/watch?v=9VAQ_sxJcq4&feature=youtu.be), [錄音備份](https://drive.google.com/open?id=0B_FULIPcXRNDZnRnZ2ZfSXdoU3M)) ## 第2章 * 主題:標准I/O庫 * 時間:9/22 2016 7:00 pm * 導讀:Quexint * [Quexint's Notes](https://docs.google.com/document/d/1fWUV9Ngk9aCZLsXf9gW-jTRq-x80y_bwmUrvPhrX38U/edit) ([chat log](https://docs.google.com/document/d/1Bu3UJQY2BsjZHGUVsoA8t9iCM4mU8tomRLNxdkKLPSU/edit#heading=h.srhpj3tt1c71), [YouTube 錄影缺後半](https://www.youtube.com/watch?v=oYJUNRNmLxk&feature=youtu.be), [Youtube Quexint視角,中間缺一段](https://www.youtube.com/watch?v=V7vILjWjK7w)) ## 第3章 * 主題:進程環境 * 時間:10/27 2016 7:00 pm * 導讀:Waylin * [Waylin hackmd 筆記](https://hackmd.io/s/rJf1ONuye) * [共筆與討論區](https://docs.google.com/document/d/1lV_k8EvpIQzxpB5xU9e9jiZSvI-PP5DewcUk1JIFRCo/edit#heading=h.fod9jt9rbite) ([YouTube 錄影](https://youtu.be/c-e6Gk49VAw), chat log 在討論區內) ## 第4章 * 主題:進程控制-進程的一生 * 時間:11/10 2016 7:00 pm * 導讀:Viller/Gavin * [hackmd 筆記](https://hackmd.io/s/Sk1SKdSxx) * [共筆與討論區](https://docs.google.com/document/d/1qzGB6jetT8RLDd8ZYobqxZaZ5mRQCl4_dLTZlDwNNF4/edit#heading=h.o0kerxiqcg3z)([YouTube 錄影](https://www.youtube.com/watch?v=9YMAWxSX_ys), chat log 在討論區內) ## 第5章 * 主題:進程控制-狀態、調度和優先級 * 時間:11/22 8:00 pm * 導讀:Miller Lee * [共筆與討論區](https://docs.google.com/document/d/1z8-7hqIRZYeoA152yNd3udopzWrXjvIlbCuOwJ146nM/edit?usp=sharing)([YouTube 錄影](https://youtu.be/hDayCHHA3cc)) ## 第6章 * 主題: 信號 * 時間: 12/6 8:00 pm * 導讀: Scott Tsai, Viller Hsiao * [共筆與討論區](https://docs.google.com/document/d/1KggWdjGOQd5oV-wCW4MGttLemvP0U0CDuzYmN4SLtns/edit) * [YouTube 錄影](https://youtu.be/Qg8cT4jN4kQ) ## 第7章 * 主題: 理解Linux線程 (1) * 時間: 12/27 8:00 pm * 導讀: Scott Tsai, Viller Hsiao * [共筆與討論區](https://docs.google.com/document/d/17cmixEhja6Hpf66-0tH2c0SbyhiVrg-sETtc7UQRqac/edit) * [YouTube 錄影](https://youtu.be/BZdGZJ6LfsI) ## 第8章 * 主題: 理解Linux線程 (2) * 時間: 1/10 8:00 pm * 導讀: Scott Tsai, Viller Hsiao * [共筆與討論區](https://docs.google.com/document/d/17cmixEhja6Hpf66-0tH2c0SbyhiVrg-sETtc7UQRqac/edit) * 視訊: https://zoom.us/j/2109998888 ## 第9章 * 主題: 進程間通信:管道 * 時間: 2/14 8:00 pm * 導讀: Yen-Kuan Wu * [共筆與討論區](https://docs.google.com/document/d/1Bi0luQyE_ZozCYeWaG5F1egMEMzq_rmScixfafuv0F0/edit) * [筆記區](https://hackmd.io/KwIxwBgFmYFoIBMCMBTOVUA5Fy6AdjmRAE4BjYRAQ2gPyA==) * 影片: https://youtu.be/bFI_JCIkgEY * 視訊: https://zoom.us/j/2109998888 ## 第11章 * 主題: 進程間通信:POSIX IPC * 時間: 3/7 8:00 pm * 導讀: Yen-Kuan Wu * [共筆與討論區](https://docs.google.com/document/d/1jb9Hu5sNqW10fybpvX2ql1kWAIYEYJVuY-ROB89d55Y/edit) * 錄影: https://youtu.be/jJDzHdwpmwU ## 第12章 * 主題: 網絡通信:連接的建立 * 時間: * 導讀: Mike Shang * [Material](https://hackmd.io/s/H1ZBRbYTx#) * [共筆與討論區](https://docs.google.com/document/d/1fUTtlh_riz3TMWxtJppfULuHo-oFjBtMyLLsggAT2to/edit) * 視訊:https://zoom.us/j/2109998888 ## 安排中 * 第10章 進程間通信:SystemV IPC (Yen-Kuan Wu 待幫忙中) * 第13章 網絡通信:數據報文的發送 (Mike Shang) * 第14章 網絡通信:數據報文的接收 (Mike Shang) * 第15章 編寫安全無錯代碼 # 如何參與? * 如有興趣一起加入閱讀與報告者請更新勇者名單與主講章節。 * 如果有興趣了解並觀看我們報告的 video ,請登入 [twlinuxkernelhackers mailing list](https://groups.google.com/forum/#!forum/tw-linux-kernel-hacker),我們會寄送相關活動邀請。 # 作者回饋 ``` > From 李彬: > 很荣幸收到你们的邀请,看到有台湾读者对我们的书感兴趣非常高兴。 > 我看到了你们读书会的时间是周四,时间上确实无法参加。 > 我在一家小的公司工作,负责的工作挺多的,深表抱歉。 > 我会关注你们的讨论,也欢迎你们来google group讨论组来讨论。 > 大家互相切磋,共同进步。 > 代我向讨论组其他同学问好。 > From 高峰: > 很抱歉,這次不能參加你們的討論會。 > 因為那個時間,一般我還是在工作中。 > 很感謝台灣的朋友們對本書的喜歡,從你們討論會的說明上看,台灣似乎不好買到。 > 不知道你們是否可以從京東訂購:http://item.jd.com/11962820.html。 > 坦率講,由於時間和精力所限,這本書還沒有達到我和李彬的心中理想的質量。 > 如果有機會再版的話,我們會修訂和補充一些內容。 > 在group里面,有一个置顶帖子,大家可以补充第一版没有涉及到的内容。 ``` ``` > 最近发现台湾的朋友确实对本书有关注,所以跟出版社做了沟通。 > 1. 出版社会联系台湾的出版社,看看有在台湾直接出版的可能; > Update from 高峰 2016/10/14 > 现在台湾的基峰出版社已经和大陆的出版社签订了出版合同。 > 另外,我和李彬已经开始二版的计划。 除了修订和改善第一版本的内容外,估计还会新增5~6个章节。 估计一年内应该差不多可以在台湾面世了 > 2. 第二版计划已经立项,我和李彬会开始着手第二版的工作:包括对第一版的内容修订,和增加新的内容。 ``` * 我們有詳盡的筆記整理,如果需要採用部份書籍上的圖片,希望可以徵求作者您們的同意。 ``` > From 高峰: > 图书图片完全没有问题,这个敬请使用。 ``` # Source 下載及編譯 * 環境: Ubuntu 14.04.5 * kernel: 3.4.22 * git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git * cd linux-stable * git checkout v3.4.22 * Build under Ubuntu 14.04 server * `cp /boot/config-$(uname -r) .config` * `yes '' | make oldconfig` * `make clean` * `make -j $(getconf _NPROCESSORS_ONLN) deb-pkg LOCALVERSION=-custom` * [LXR online source code reference](http://lxr.linux.no/linux+v3.4.22/) * [編譯參考資料](https://wiki.ubuntu.com/KernelTeam/GitKernelBuild) * glibc: 2.17 ```shell mkdir $HOME/src cd $HOME/src git clone git://sourceware.org/git/glibc.git cd glibc git checkout glibc-2.17 mkdir -p $HOME/build/glibc/2.17 cd $HOME/build/glibc $HOME/src/glibc/configure --prefix=$HOME/build/glibc/2.17 make ```

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully