logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

sched_rr_get_interval.3p (2543B)


  1. '\" et
  2. .TH SCHED_RR_GET_INTERVAL "3P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. sched_rr_get_interval
  12. \(em get execution time limits
  13. (\fBREALTIME\fP)
  14. .SH SYNOPSIS
  15. .LP
  16. .nf
  17. #include <sched.h>
  18. .P
  19. int sched_rr_get_interval(pid_t \fIpid\fP, struct timespec *\fIinterval\fP);
  20. .fi
  21. .SH DESCRIPTION
  22. The
  23. \fIsched_rr_get_interval\fR()
  24. function shall update the
  25. .BR timespec
  26. structure referenced by the
  27. .IR interval
  28. argument to contain the current execution time limit (that is, time
  29. quantum) for the process specified by
  30. .IR pid .
  31. If
  32. .IR pid
  33. is zero, the current execution time limit for the calling process
  34. shall be returned.
  35. .SH "RETURN VALUE"
  36. If successful, the
  37. \fIsched_rr_get_interval\fR()
  38. function shall return zero. Otherwise, it shall return a value of
  39. \-1 and set
  40. .IR errno
  41. to indicate the error.
  42. .SH ERRORS
  43. The
  44. \fIsched_rr_get_interval\fR()
  45. function shall fail if:
  46. .TP
  47. .BR ESRCH
  48. No process can be found corresponding to that specified by
  49. .IR pid .
  50. .LP
  51. .IR "The following sections are informative."
  52. .SH EXAMPLES
  53. None.
  54. .SH "APPLICATION USAGE"
  55. None.
  56. .SH RATIONALE
  57. None.
  58. .SH "FUTURE DIRECTIONS"
  59. None.
  60. .SH "SEE ALSO"
  61. .ad l
  62. .IR "\fIsched_getparam\fR\^(\|)",
  63. .IR "\fIsched_get_priority_max\fR\^(\|)",
  64. .IR "\fIsched_getscheduler\fR\^(\|)",
  65. .IR "\fIsched_setparam\fR\^(\|)",
  66. .IR "\fIsched_setscheduler\fR\^(\|)"
  67. .ad b
  68. .P
  69. The Base Definitions volume of POSIX.1\(hy2017,
  70. .IR "\fB<sched.h>\fP"
  71. .\"
  72. .SH COPYRIGHT
  73. Portions of this text are reprinted and reproduced in electronic form
  74. from IEEE Std 1003.1-2017, Standard for Information Technology
  75. -- Portable Operating System Interface (POSIX), The Open Group Base
  76. Specifications Issue 7, 2018 Edition,
  77. Copyright (C) 2018 by the Institute of
  78. Electrical and Electronics Engineers, Inc and The Open Group.
  79. In the event of any discrepancy between this version and the original IEEE and
  80. The Open Group Standard, the original IEEE and The Open Group Standard
  81. is the referee document. The original Standard can be obtained online at
  82. http://www.opengroup.org/unix/online.html .
  83. .PP
  84. Any typographical or formatting errors that appear
  85. in this page are most likely
  86. to have been introduced during the conversion of the source files to
  87. man page format. To report such errors, see
  88. https://www.kernel.org/doc/man-pages/reporting_bugs.html .