bsd man page for ucall

Query: ucall

OS: bsd

Section: 2

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

UCALL(2)							System Calls Manual							  UCALL(2)

NAME
ucall - call a kernel subroutine from user mode (2BSD)
SYNOPSIS
#include <pdp/psl.h> #include <sys/types.h> ucall(priority, function, arg0, arg1) int priority, arg0, arg1; caddr_t function;
DESCRIPTION
Ucall causes the processor priority to be set to priority and the specified kernel function to be called with arguments arg0 and arg1. Priority is one of PSL_BR0, ..., PSL_BR7. Processor priority is reset to PSL_BR0 when function returns. Ucall is allowed only if the user is the superuser. It is obviously extremely dangerous if misused. It's only current use is at system boot time to configure system devices by calling device drivers ...
ERRORS
[EPERM] The caller is not the super-user.
SEE ALSO
autoconfig(8)
BUGS
No address validations are attempted. Ucall is unique to the PDP-11 and 2BSD; its use is discouraged. 3rd Berkeley Distribution January 22, 1987 UCALL(2)
Related Man Pages
setpriority(2) - bsd
nice(3) - ultrix
getpriority(2) - netbsd
setpriority(2) - netbsd
getpriority(2) - freebsd
Similar Topics in the Unix Linux Community
Need help in creating arrays using shell
arrays and two values
Disabling and enabling the cron
Using finger in a loop