1UCALL(2)                      System Calls Manual                     UCALL(2)
2
3
4

NAME

6       ucall - call a kernel subroutine from user mode (2BSD)
7

SYNOPSIS

9       #include <pdp/psl.h>
10       #include <sys/types.h>
11
12       ucall(priority, function, arg0, arg1)
13       int priority, arg0, arg1;
14       caddr_t function;
15

DESCRIPTION

17       Ucall causes the processor priority to be set to priority and the spec‐
18       ified kernel function to be called with arguments arg0 and arg1.   Pri‐
19       ority  is one of PSL_BR0, ..., PSL_BR7.  Processor priority is reset to
20       PSL_BR0 when function returns.
21
22       Ucall is allowed only if the user is the superuser.   It  is  obviously
23       extremely  dangerous  if  misused.   It's only current use is at system
24       boot time to configure system devices by calling device drivers ...
25

ERRORS

27       [EPERM]        The caller is not the super-user.
28

SEE ALSO

30       autoconfig(8)
31

BUGS

33       No address validations are attempted.
34
35       Ucall is unique to the PDP-11 and 2BSD; its use is discouraged.
36
37
38
393rd Berkeley Distribution      January 22, 1987                       UCALL(2)
Impressum