This commit is contained in:
Morgan 2023-11-26 21:14:33 +09:00
parent 2322efbb25
commit 03bc5f01e8
7 changed files with 16 additions and 109 deletions

View File

@ -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/

View File

@ -1,6 +0,0 @@
---
title: 2023-11-01
date: 2023-11-01T13:37:27.999Z
slug: 2023-11-01
---
## 2023 November 1st

View File

@ -2,7 +2,7 @@
title: Kernel, Bootloader title: Kernel, Bootloader
date: 2023-11-22T05:35:09.645Z date: 2023-11-22T05:35:09.645Z
slug: bootloader-and-loading-kernel slug: bootloader-and-loading-kernel
description: "Deep dive Linux Kernel #2" description: "Linux Kernel #2"
--- ---
부트로더가 하는 일은 부트로더가 하는 일은

View File

@ -2,7 +2,7 @@
title: Kernel, Process creation title: Kernel, Process creation
date: 2023-11-26T07:44:51.449Z date: 2023-11-26T07:44:51.449Z
slug: kernel-process-creation slug: kernel-process-creation
description: "Deep dive Linux Kernel #3" description: "Linux Kernel #3"
--- ---
```c ```c
static int init(void * unused) static int init(void * unused)

View File

@ -2,7 +2,7 @@
title: Kernel, PTY and TTY title: Kernel, PTY and TTY
date: 2023-11-26T10:47:11.631Z date: 2023-11-26T10:47:11.631Z
slug: kernel-pty-tty slug: kernel-pty-tty
description: Kernel description: "Linux Kernel #4"
--- ---
## PTY (Pseudo-TTY), TTY (TeleTYpewriter). ## 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 retval;
int line; int line;
@ -103,7 +104,10 @@ out:
``` ```
```c ```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.magic = TTY_DRIVER_MAGIC;
dev_tty_driver.driver_name = "/dev/tty"; dev_tty_driver.driver_name = "/dev/tty";
dev_tty_driver.name = dev_tty_driver.driver_name + 5; 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)) if (tty_register_driver(&dev_syscons_driver))
panic("Couldn't register /dev/console driver\n"); panic("Couldn't register /dev/console driver\n");
...
}
``` ```

View File

@ -1,5 +1,5 @@
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/static/pretendard.css"); @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-face {
font-family: "Line Sans"; font-family: "Line Sans";

View File

@ -127,10 +127,10 @@
{{- /* Favicons */}} {{- /* Favicons */}}
<link rel="icon" href="{{ site.Params.assets.favicon | default "favicon.ico" | absURL }}"> <link rel="icon" href="{{ site.Params.assets.favicon | default "favicon.ico" | absURL }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ site.Params.assets.favicon16x16 | default "favicon-16x16.png" | absURL }}"> <!-- <link rel="icon" type="image/png" sizes="16x16" href="{{ site.Params.assets.favicon16x16 | default "favicon-16x16.png" | absURL }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ site.Params.assets.favicon32x32 | default "favicon-32x32.png" | absURL }}"> <link rel="icon" type="image/png" sizes="32x32" href="{{ site.Params.assets.favicon32x32 | default "favicon-32x32.png" | absURL }}">
<link rel="apple-touch-icon" href="{{ site.Params.assets.apple_touch_icon | default "apple-touch-icon.png" | absURL }}"> <link rel="apple-touch-icon" href="{{ site.Params.assets.apple_touch_icon | default "apple-touch-icon.png" | absURL }}">
<link rel="mask-icon" href="{{ site.Params.assets.safari_pinned_tab | default "safari-pinned-tab.svg" | absURL }}"> <link rel="mask-icon" href="{{ site.Params.assets.safari_pinned_tab | default "safari-pinned-tab.svg" | absURL }}"> -->
<meta name="theme-color" content="{{ site.Params.assets.theme_color | default "#2e2e33" }}"> <meta name="theme-color" content="{{ site.Params.assets.theme_color | default "#2e2e33" }}">
<meta name="msapplication-TileColor" content="{{ site.Params.assets.msapplication_TileColor | default "#2e2e33" }}"> <meta name="msapplication-TileColor" content="{{ site.Params.assets.msapplication_TileColor | default "#2e2e33" }}">