jdolecek
128eb4ec07
bring in 'syscall' and 'misc' example modules from former /usr/share/lkm,
...
updated to current LKM programming style
even through the modules do work, they are not built nor installed by default -
they are here solely as a help to potential LKM writer
2000-12-11 13:48:10 +00:00
ad
2940363203
Report soft-errors-per-unit once per minute at most.
2000-12-11 13:19:50 +00:00
tron
d0de1ec852
Protect against multiple inclusion.
2000-12-11 11:39:06 +00:00
tron
c6cdb692f3
Include "machine/frame.h" to avoid lint errors while building "libc".
2000-12-11 10:22:55 +00:00
jdolecek
384e2929b7
nuke, mostly obsolete
2000-12-11 09:11:22 +00:00
itojun
93292b8aaa
do not touch region after free
2000-12-11 07:52:48 +00:00
mycroft
e6d33b69ec
Nuke reference to trace.h.
2000-12-11 05:41:06 +00:00
augustss
6e11678a15
Get rid of UQ_ASSUME_CM_OVER_DATA quirk; it's handled differently now.
2000-12-11 05:41:00 +00:00
mycroft
0f17615da7
There is no Berkeley code in any of these files.
2000-12-11 05:37:01 +00:00
mycroft
f495cd9dc6
Introduce 2 new flags in types.h:
...
* __HAVE_SYSCALL_INTERN. If this is defined, e_syscall is replaced by
e_syscall_intern, which is called at key places in the kernel. This can be
used to set a MD syscall handler pointer. This obsoletes and replaces the
*_HAS_SEPARATED_SYSCALL flags.
* __HAVE_MINIMAL_EMUL. If this is defined, certain (deprecated) elements in
struct emul are omitted.
2000-12-11 05:28:59 +00:00
thorpej
105cf38061
Add some basic statistics to pool_cache.
2000-12-11 05:22:55 +00:00
mycroft
fef5184d84
Regen.
2000-12-11 04:56:01 +00:00
mycroft
fc774b14ce
getuid -> getuid_with_euid
...
getgid -> getgid_with_egid
2000-12-11 04:55:50 +00:00
mycroft
75fbdc005e
Nuke LINUX_MACHDEP_PASS_PPID.
2000-12-11 04:55:09 +00:00
mycroft
cfe0002fc5
Regen.
2000-12-11 04:54:29 +00:00
mycroft
6d0c28a87c
getpid -> getpid_with_ppid
2000-12-11 04:54:13 +00:00
chs
bb61d9c5e4
in flush_inodedep_deps(), drop the big softdep lock while flushing pages.
2000-12-11 03:53:54 +00:00
mycroft
e99a608974
Regen.
2000-12-11 03:09:10 +00:00
mycroft
c0341b165d
Round up sysent table size.
2000-12-11 03:09:02 +00:00
mycroft
f0689d5505
Regen.
2000-12-11 03:07:06 +00:00
mycroft
23babc12e5
Round up sysent table size.
2000-12-11 03:06:49 +00:00
chs
a8a757cd0a
implement VOP_GETPAGES().
2000-12-11 02:50:17 +00:00
mycroft
6a4dfe5f24
Slight tweak.
2000-12-11 02:48:07 +00:00
itojun
25296369e5
make sure t_family has the correct protocol family, after connect(2)
...
and/or bind(2). sync with kame
2000-12-11 00:07:48 +00:00
itojun
9302f377a6
remove NRL code leftover. sync with kame
2000-12-10 23:39:36 +00:00
fvdl
e464d0288a
sobind() interface change -> 1.5N
2000-12-10 23:17:28 +00:00
fvdl
405b695086
Make sobind() take a struct proc *. It already took curproc and
...
passed it down to the appropriate usrreq function, and this
allows usage for contexts that need to be explicitly different
from curproc (like in the NFS code when binding to a reserved port).
2000-12-10 23:16:28 +00:00
fvdl
89cef8992e
Update prototype for sobind() to include a struct proc *.
2000-12-10 23:13:42 +00:00
scw
5d5ebb1b73
Simplify the reboot code:
...
Always jump through the PROM's reset vector, regardless of board type.
Fix a stack offset problem in the mvme147 reset code path.
2000-12-10 20:00:21 +00:00
eeh
264fbb89af
Cleanup types in DEBUG printf()s.
2000-12-10 19:52:17 +00:00
chs
4ab33e73c2
call pgo_flush with (start,end) rather than (start,length).
2000-12-10 19:41:35 +00:00
chs
3a5e4f901b
in *_sync(), don't skip vnodes which have (potentially dirty) pages.
2000-12-10 19:36:31 +00:00
eeh
40638d9f35
Zero proc 0 stack pages so the pcb is cleared out before use.
2000-12-10 19:33:02 +00:00
mycroft
66610a4779
Introduce PROC_PC(), which is used to get a process's user PC. If this is
...
defined, call addupc_intr() directly from statclock() in the system time case,
using the same P_OWEUPC path if the copyin/copyout fails.
Use this in i386 to remove profiling code from the normal userret() path.
2000-12-10 19:29:30 +00:00
chs
837f5c9bd6
we don't need VM_PROT_EXECUTE for UBC mappings.
2000-12-10 19:28:09 +00:00
chs
b9423d9d52
in pmap_enter(), do not mark the page modified just because we mapped it
...
for write to a kernel address. callers may now use the "flags" argument
to cause this to happen when desired.
2000-12-10 19:25:44 +00:00
eeh
af770220fa
Fix for chips that don't grok NCRCMD_SELATN3.
2000-12-10 19:25:07 +00:00
scw
8ace7abc75
A small splx()/spl0()/soft interrupt related optimisation. If we're
...
dropping to spl0, use inline code to check if a soft interrupt is
pending instead of taking the hit of a function call to do the check.
2000-12-10 18:43:02 +00:00
scw
c5b6f43634
Define splzs()' to be
splserial()' instead of `spl4()', which was
...
wrong anyway since it blindly set SPL to 4 regardless of the prevailing
level.
2000-12-10 18:00:24 +00:00
thorpej
a1479e118c
Fix previous:
...
- EBADF, not NULL when a file descriptor can't be found.
- Check FIF_WANTCLOSE properly.
2000-12-10 17:34:25 +00:00
thorpej
ce866cd0e8
Don't hold a pool cache lock across any call to pool_get() or pool_put().
...
This allows us to change a try-lock into a normal lock in the reclaim
case.
2000-12-10 17:03:34 +00:00
jdolecek
48f421c3fa
do not try to get/set sample rate on codecs which don't support variable
...
rate audio - always report/use fixed rate of 44100 for them, so that the
other audio code DTRT
2000-12-10 15:43:02 +00:00
bjh21
4f1ee09e5f
It looks like UBC_WINSIZE needs to be at least PAGE_SIZE.
2000-12-10 14:28:45 +00:00
fvdl
eb1e790ed3
Add linux_fdio.c and linux_hdio.c
2000-12-10 14:15:04 +00:00
fvdl
538c381225
findblkname is not static (and is in fact used outside this file).
2000-12-10 14:14:15 +00:00
fvdl
813c5d92f7
Bump stackgap size from 400 to 512.
2000-12-10 14:13:04 +00:00
fvdl
a499e56944
Add some ioctls for harddisk, floppy disk and console handling.
...
Implement a few extra cdrom ioctl calls.
Make sure to correctly use FILE_USE and FILE_UNUSE.
2000-12-10 14:12:16 +00:00
fvdl
e772d7a6d5
Add i386-specific code for a few ioctl calls.
2000-12-10 14:09:59 +00:00
fvdl
ec9b1e3f5e
The gist of the Linux _IOX definitions was the same for all platforms;
...
move it to the MI linux_ioctl.h and only leave the MD bits in the MD
header files.
Add defintions for linux_ioctl_hdio and linux_ioctl_fdio.
2000-12-10 14:08:48 +00:00
fvdl
8488f3e039
The gist of the Linux _IOX definitions was the same for all platforms;
...
move it to the MI linux_ioctl.h and only leave the MD bits in the MD
header files.
2000-12-10 14:07:22 +00:00