Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f82b8f3

Browse files
Docs: update note
1 parent 04bf554 commit f82b8f3

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

‎LinuxSystem/System Programming Notes.md‎

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,21 @@
66
- Example of system calls:
77
- ```read()```, ```write()```, ```get_thread_area()```, ```set_tid_address()```, etc.
88

9+
- A system call can be considered as a interface through which the User application code enters the Kernel mode.
10+
11+
- System calls can be invoked from user application in 2 ways:
12+
1. Directly calling the system call.
13+
2. The user code calls the library function, and this function invokes or calls the systems calls when required.
14+
915
### Invoke Syscalls
10-
- Usermode applications are not allow to directly execute kernel code or manipulate kernel data.
16+
- User mode applications are not allow to directly execute Kernel code or manipulate kernel data.
17+
- Linux provides a set of syscall to pass control from User mode to Kernel mode.
1118

1219
## Kernel
13-
- The core of the Operation System (OS).
20+
- The core of the Operation System (OS).
21+
22+
## Library Functions
23+
- A library is a collection of pre-compiled code.
24+
- Library functions are designed over the system calls in order to provide more additional functionality in the library functions.
25+
26+
![alt text](res/library_function_interface.png)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /