diff --git a/config.yml.old b/config.yml.old deleted file mode 100644 index fcc6ae6..0000000 --- a/config.yml.old +++ /dev/null @@ -1,93 +0,0 @@ -baseURL: "http://blog.morgan.kr" -title: Morgan's Blog -theme: "oldtheme" - -buildDrafts: false -buildFuture: false -buildExpired: false - -params: - env: production - title: Morgan's Blog - description: "Hi! I'm Morgan!" - keywords: [Blog] - author: Me - DateFormat: "Jan 2, 2006" - assets: - favicon: "https://blog.morgan.kr/favicon.ico" - apple_touch_icon: "https://blog.morgan.kr/favicon.ico" - safari_pinned_tab: "https://blog.morgan.kr/favicon.ico" - mainSections: - - posts - label: - icon: /favicon.png - icon_inv: /favicon-inv.png - iconHeight: 24 - buildDate: 11012207 - -####################################### - - defaultTheme: dark - disableThemeToggle: false - ShowReadingTime: false - ShowShareButtons: true - ShowPostNavLinks: true - ShowBreadCrumbs: false - ShowCodeCopyButtons: true - ShowWordCount: false - ShowRssButtonInSectionTermList: false - UseHugoToc: true - disableSpecial1stPost: false - disableScrollToTop: false - comments: false - hidemeta: false - hideSummary: false - showtoc: false - tocopen: false - homeInfoParams: - Title: Hi, I'm Morgan. - Content: Student Developer - - socialIcons: - - name: github - url: "https://github.com/morgan9e" - - name: email - url: "mailto:me@morgan.kr" - - name: git - url: "https://git.morgan.kr" - - name: twitter - url: "https://twitter.com/morgan8w" - - name: telegram - url: "https://t.me/morgan9e" - cover: - hidden: true - hiddenInList: true - hiddenInSingle: true - fuseOpts: - isCaseSensitive: false - shouldSort: true - location: 0 - distance: 1000 - threshold: 0.4 - minMatchCharLength: 0 - keys: ["title", "permalink", "summary", "content"] - -paginate: 100 -menus: - main: - - identifier: posts - name: Posts - url: /posts/ - weight: 30 - -pygmentsUseClasses: true -markup: - highlight: - noClasses: false - codeFences: true - guessSyntax: true - -############################# - -permalinks: - posts: /:year/:month/:title/ diff --git a/content/daily/2023-11-01.md b/content/daily/2023-11-01.md deleted file mode 100644 index d9bd34c..0000000 --- a/content/daily/2023-11-01.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: 2023-11-01 -date: 2023-11-01T13:37:27.999Z -slug: 2023-11-01 ---- -## 2023 November 1st diff --git a/content/posts/2023-11-22-부트로더와-커널-로딩.md b/content/posts/2023-11-22-kernel-bootloader.md similarity index 97% rename from content/posts/2023-11-22-부트로더와-커널-로딩.md rename to content/posts/2023-11-22-kernel-bootloader.md index 9d4f858..664fd56 100644 --- a/content/posts/2023-11-22-부트로더와-커널-로딩.md +++ b/content/posts/2023-11-22-kernel-bootloader.md @@ -2,7 +2,7 @@ title: Kernel, Bootloader date: 2023-11-22T05:35:09.645Z slug: bootloader-and-loading-kernel -description: "Deep dive Linux Kernel #2" +description: "Linux Kernel #2" --- 부트로더가 하는 일은 @@ -21,4 +21,4 @@ description: "Deep dive Linux Kernel #2" 그리고 외부적 인터럽트나 시스템 콜 없이 프로세스가 context를 계속 잡고 있으면 다시 커널로 돌아올 방법이 없다. timed inturrupt나 watchdog이 필요하다. -\* 부트로더 단계에서 MMU 초기화 하고 페이징 하는 복잡한 시스템이 아니라 임베디드 ARM 환경에서의 이야기다. UEFI나 모던 시스템에서는 다를거다. \ No newline at end of file +\* 부트로더 단계에서 MMU 초기화 하고 페이징 하는 복잡한 시스템이 아니라 임베디드 ARM 환경에서의 이야기다. UEFI나 모던 시스템에서는 다를거다. diff --git a/content/posts/2023-11-26-kernel-creation-of-new-process.md b/content/posts/2023-11-26-kernel-creation-of-new-process.md index 275e9d8..3ef68dd 100644 --- a/content/posts/2023-11-26-kernel-creation-of-new-process.md +++ b/content/posts/2023-11-26-kernel-creation-of-new-process.md @@ -2,7 +2,7 @@ title: Kernel, Process creation date: 2023-11-26T07:44:51.449Z slug: kernel-process-creation -description: "Deep dive Linux Kernel #3" +description: "Linux Kernel #3" --- ```c static int init(void * unused) diff --git a/content/posts/2023-11-26-kernel-pty-and-tty.md b/content/posts/2023-11-26-kernel-pty-and-tty.md index 0a978fc..511066b 100644 --- a/content/posts/2023-11-26-kernel-pty-and-tty.md +++ b/content/posts/2023-11-26-kernel-pty-and-tty.md @@ -2,7 +2,7 @@ title: Kernel, PTY and TTY date: 2023-11-26T10:47:11.631Z slug: kernel-pty-tty -description: Kernel +description: "Linux Kernel #4" --- ## PTY (Pseudo-TTY), TTY (TeleTYpewriter). @@ -70,7 +70,8 @@ static int pty_write(struct tty_struct * tty, int from_user, } ``` -```cstatic +```c +static int pty_open(struct tty_struct *tty, struct file * filp) { int retval; int line; @@ -103,7 +104,10 @@ out: ``` ```c -memset(&dev_tty_driver, 0, sizeof(struct tty_driver)); +int __init pty_init(void) +{ + int i; + memset(&dev_tty_driver, 0, sizeof(struct tty_driver)); dev_tty_driver.magic = TTY_DRIVER_MAGIC; dev_tty_driver.driver_name = "/dev/tty"; dev_tty_driver.name = dev_tty_driver.driver_name + 5; @@ -127,4 +131,6 @@ memset(&dev_tty_driver, 0, sizeof(struct tty_driver)); if (tty_register_driver(&dev_syscons_driver)) panic("Couldn't register /dev/console driver\n"); -``` \ No newline at end of file + ... +} +``` diff --git a/themes/mytheme/assets/css/core/reset.css b/themes/mytheme/assets/css/core/reset.css index a5cb054..c37eaa0 100644 --- a/themes/mytheme/assets/css/core/reset.css +++ b/themes/mytheme/assets/css/core/reset.css @@ -1,5 +1,5 @@ @import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/static/pretendard.css"); -@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&family=Gowun+Dodum&family=JetBrains+Mono&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400&display=swap'); +@import url("https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&family=Gowun+Dodum&family=JetBrains+Mono&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400"); @font-face { font-family: "Line Sans"; diff --git a/themes/mytheme/layouts/partials/head.html b/themes/mytheme/layouts/partials/head.html index 58d462c..f0dba4c 100644 --- a/themes/mytheme/layouts/partials/head.html +++ b/themes/mytheme/layouts/partials/head.html @@ -127,10 +127,10 @@ {{- /* Favicons */}} - +