Presentation is loading. Please wait.

Presentation is loading. Please wait.

System Calls Richard Newman University of Florida.

Similar presentations


Presentation on theme: "System Calls Richard Newman University of Florida."— Presentation transcript:

1 System Calls Richard Newman University of Florida

2 Procedure Calls Function as named code Jump to entry/return Parameters
Must store return address Parameters Registers Stack Buffers Local vars

3 System Calls (1) Figure The 11 steps in making the system call read(fd, buffer, nbytes). Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

4 System Calls (2) Figure Some of the major POSIX system calls. The return code s is −1 if an error has occurred. The return codes are as follows: pid is a process id, fd is a file descriptor, n is a byte count, position is an offset within the file, and seconds is the elapsed time. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

5 System Calls (3) Figure Some of the major POSIX system calls. The return code s is −1 if an error has occurred. The return codes are as follows: pid is a process id, fd is a file descriptor, n is a byte count, position is an offset within the file, and seconds is the elapsed time. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

6 System Calls (4) Figure Some of the major POSIX system calls. The return code s is −1 if an error has occurred. The return codes are as follows: pid is a process id, fd is a file descriptor, n is a byte count, position is an offset within the file, and seconds is the elapsed time. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

7 System Calls (5) Figure Some of the major POSIX system calls. The return code s is −1 if an error has occurred. The return codes are as follows: pid is a process id, fd is a file descriptor, n is a byte count, position is an offset within the file, and seconds is the elapsed time. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

8 System Calls for Process Management
Figure A stripped-down shell. Throughout this book, TRUE is assumed to be defined as 1. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

9 System Calls for File Management
Figure Processes have three segments: text, data, and stack Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

10 System Calls for Directory Management (1)
Figure (a) Two directories before linking usr/jim/memo to ast’s directory. (b) The same directories after linking. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

11 System Calls for Directory Management (2)
Figure (a) File system before the mount. (b) File system after the mount. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

12 The Windows Win32 API (1) Figure The Win32 API calls that roughly correspond to the UNIX calls of Fig Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

13 The Windows Win32 API (2) Figure The Win32 API calls that roughly correspond to the UNIX calls of Fig Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.


Download ppt "System Calls Richard Newman University of Florida."

Similar presentations


Ads by Google