`
`1.12. System Calls — Operating Systems Study Guide
`
`The Wayback Machine - http://web.archive.org/web/20141013040449/http://faculty.salina.k-state.edu:80/tim/ossg/Introduction/sys_calls.html
`
`Navigation
`
`index
`modules |
`M |
`previous |
`
`1. Introduction to Operatingfiystems »
`
`1.12. System Callsfli
`
`See also
`
`Video about the System Call and User Interfaces to an Operatingfiystem
`
`
`
`The system call provides an interface to the operating system services.
`
`Application developers ofien do not have direct access to the system calls, but can access them through an application programming interface (API).
`The functions that are included in the API invoke the actual system calls. By using the API, certain benefits can be gained:
`
`- Portability: as long a system supports an API, any program using that API can compile and run.
`0 Ease of Use: using the API can be significantly easier then using the actual system call.
`
`1.12.1. System Call Paramatersfl
`
`Three general methods exist for passing parameters to the OS:
`
`1. Parameters can be passed in registers.
`2. When there are more parameters than registers, parameters can be stored in a block and the block address can be passed as a parameter to a
`register.
`3. Parameters can also be pushed on or popped off the stack by the operating system.
`
`register
`
` user program
`Opalfliing system
`
`1.12.2. Types of System Callsfii
`
`There are 5 different categories of system calls:
`process control, file manipulation, device manipulation, information maintenance and communication.
`
`1.12.2.1. Process Controlfli
`
`web.archive.org/web/20141013040449/http://facu|ty.sa|ina.k-state.edu/tim/ossg/Introduction/sys_calls.htm|
`
`1/2
`
`Patent Owner, Bot M8 LLC - Ex. 2059, p. 1
`
`Patent Owner, Bot M8 LLC - Ex. 2059, p. 1
`
`
`
`5/10/2021
`
`1.12. System Calls — Operating Systems Study Guide
`
`A running program needs to be able to stop execution either normally or abnormally. When execution is stopped abnormally, often a dump of memory
`is taken and can be examined with a debugger.
`
`1.12.2.2. File Managementfil
`
`Some common system calls are create, delete, read, write, reposition, or close. Also, there is a need to determine the file attributes — get and set file
`attribute. Many times the OS provides an API to make these system calls.
`
`1.12.2.3. Device Managementfil
`
`Process usually require several resources to execute, if these resources are available, they will be granted and control returned to the user process.
`These resources are also thought of as devices. Some are physical, such as a video card, and others are abstract, such as a file.
`
`User programs request the device, and when finished they release the device. Similar to files, we can read, write, and reposition the device.
`
`1.12.2.4. Information Managementfl]
`
`Some system calls exist purely for transferring information between the user program and the operating system. An example of this is time, or date.
`
`The OS also keeps information about all its processes and provides system calls to report this information.
`
`1.12.2.5. Communicationfi
`
`There are two models of interprocess communication, the message-passing model and the shared memory model.
`
`- Message-passing uses a common mailbox to pass messages between processes.
`0 Shared memory use certain system calls to create and gain access to create and gain access to regions of memory owned by other processes. The
`two processes exchange information by reading and writing in the shared data.
`
`:Qgg
`
`Table Of Contents
`
`. 1.12. System Calls
`0 1.12,1. System g Zall Paramaters
`0 1.12.2. Types of System Calls
`I 1.12.2.1. Process Control
`I 1,1222 File Management
`1.12.2.3. Device Management
`1.12.2.4. Information Management
`1.12.2.5. Communication
`
`Previous topic
`
`1.11. User Interface
`
`Next topic
`
`Mystem Progrm
`
`This Page
`
`0 Show Source
`
`Quick search
`
`Enter search terms or a module, class or function name.
`
`Navigation
`
`indJ
`modules |
`M |
`previous |
`
`1. Introduction to Operating Systems »
`
`.00...
`
`© Copyright 2009, Tim Bower. Created using Sphinx 1.1.3.
`web.archive.org/web/20141013040449/http://facu|ty.sa|ina.k-state.edu/tim/ossg/Introduction/sys_calls.htm|
`
`2/2
`
`Patent Owner, Bot M8 LLC - Ex. 2059, p. 2
`
`Patent Owner, Bot M8 LLC - Ex. 2059, p. 2
`
`