| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
primitives.
|
| |
|
|
|
|
|
|
| |
It seems counter-intuitive that all drivers have to do this.
Pointed in right direction by: gj
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- use `struct uma_zone *' instead of uma_zone_t, so that <sys/uma.h> isn't
a prerequisite.
- don't include <sys/uma.h>.
Namespace pollution makes "opaque" types like uma_zone_t perfectly
non-opaque. Such types should never be used (see style(9)).
"Fixed" subsequently grown dependencies of this header on its own
pollution by polluting explicitly:
- include <sys/mutex.h> and its prerequisite <sys/lock.h> instead of
depending on namespace pollution 2 layers deep in <sys/uma.h>.
|
|
|
|
| |
layers deep in <sys/proc.h> or <sys/vnode.h>.
|
|
|
|
|
|
|
|
| |
- use `struct uma_zone *' instead of uma_zone_t, so that <sys/uma.h> isn't
a prerequisite.
- don't include <sys/uma.h>.
Namespace pollution makes "opaque" types like uma_zone_t perfectly
non-opaque. Such types should never be used (see style(9)).
|
|
|
|
|
|
| |
layers deep in <sys/proc.h> or <sys/vnode.h>.
Removed unused includes. Sorted includes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Changed rename(2) to follow the letter of the POSIX spec. POSIX
requires rename() to have no effect if its args "resolve to the same
existing file". I think "file" can only reasonably be read as referring
to the inode, although the rationale and "resolve" seem to say that
sameness is at the level of (resolved) directory entries.
ext2fs_vnops.c, ufs_vnops.c:
Replaced code that gave the historical BSD behaviour of removing one
link name by checks that this code is now unreachable. This fixes
some races. All vnodes needed to be unlocked for the removal, and
locking at another level using something like IN_RENAME was not even
attempted, so it was possible for rename(x, y) to return with both x
and y removed even without any unlink(2) syscalls (one process can
remove x using rename(x, y) and another process can remove y using
rename(y, x)).
Prodded by: alfred
MFC after: 8 weeks
PR: 42617
|
|
|
|
| |
other #define FOO.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
reprobe code working. This bogusness was thrust upon me.
o Don't delete the device if no drivers attach. I had thrust this bogusness
upon others.
These two changes make kldload of a pccard driver work again.
|
| |
|
|
|
|
| |
cis submitted by: phk
|
|
|
|
| |
Reviewed by: phk
|
| |
|
|
|
|
|
|
| |
as valid.
Submitted by: Michal Mertl <mime@traveller.cz>
|
|
|
|
| |
Approved by: gallatin (mentor)
|
|
|
|
|
|
|
| |
should revoke access to memory maps on a process label change.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs
|
|
|
|
|
|
|
| |
mac_cred_mmapped_drop_perms() to the caller.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs
|
|
|
|
|
|
|
|
|
| |
in their library (STYP_LIB) section.
- Attempt to make the code which calculates the next entry and
string offsets look clearer.
PR: kern/42580
Tested by: Olaf Klein <ok@adimus.de> (on 4.7-PRERELEASE)
|
|
|
|
|
|
|
|
| |
packets in addition to IPPROTO_IPV4 and IPPROTO_IPV6, explicitly specify
IPPROTO_IPV4 or IPPROTO_IPV6 instead of -1 when calling encap_attach().
MFC after: 28 days
(along with other if_gre changes)
|
|
|
|
|
|
|
|
| |
address space yet.
- Check whether a process is a system process prior to dereferencing
its p_vmspace. Aio assumes that only the curthread switches the address
space of a system process.
|
| |
|
|
|
|
|
|
| |
Reminded by: bde
MFC after: 28 days
(along with other if_gre stuff)
|
|
|
|
|
|
| |
kernel (softc and such) under #ifdef _KERNEL.
Submitted by: bde
|
|
|
|
| |
is obsolete.
|
| |
|
|
|
|
|
|
| |
to MAX-1 -> 0. This should allow for less potential for conflict
between pccardd/pccardc and drivers. As far as I can tell no drivers
try to use window 4, so this should be a no-op for them.
|
|
|
|
|
|
|
|
| |
cards to test; however the submitter reports that this patch works
with the on-board interface on the IBM x235 server.
Submitted by: Jung-uk Kim <jkim@niksun.com>
MFC after: 1 month
|
|
|
|
| |
Brucified by: bde
|
|
|
|
| |
Spotted by: Neelkanth Natu <neelnatu@yahoo.com>
|
|
|
|
| |
Submitted by: Michal Mertl <mime@traveller.cz>
|
|
|
|
| |
of a private cached copy.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Get the initial mode from the prom settings and don't clobber the mode
on open.
- Copy output into an internal ring buffer instead of accessing the tty
outq directly in the interrupt handler. This fixes a problem where
garbage would show up in the output stream.
- Reset the console port completely and reprogram all the parameters
before enabling it. This fixes seemingly random hangs on startup
when using a fast interrupt handler.
- Add minimal locking in place of spls.
- Remove dead code and minor cleanups.
|
|
|
|
| |
if it had been different to the running kernel.
|
|
|
|
| |
should be renamed to COMPAT_GZIPAOUT or something like that.
|
|
|
|
| |
Found by: kris, jake
|
|
|
|
|
|
|
| |
Move fill_kinfo_proc to before we copy the results instead of after
the copy and too late.
There is still more to do here.
|
|
|
|
|
|
| |
for this.
Submitted by: bde
|
|
|
|
|
|
| |
available at module compile time. Do not #include the bogus
opt_kstack_pages.h at this point and instead refer to the variables that
are also exported via sysctl.
|
|
|
|
|
|
|
|
| |
PS_STRINGS and USRSTACK is. This is necessary in order to decode a.out
core dumps. kern_proc.c was already referring to both of these values
but was missing the #include "opt_kstack_pages.h". Make the sysctl
variables visible so that certain kld modules can see how their parent
kernel was configured.
|
|
|
|
|
|
|
|
| |
support this, we do have MI code that references it and is otherwise
unaware of an override. The alternative is to put knowledge in these
MI files about which platforms have the opt_kstack_pages.h option file.
It is more likely that other platforms will gain the ability to tune the
kstack size.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to userland in the signal handler that were not being iflled out before, but
should and can be.
This part of sendsig could be slightly refactored to use an MI interface, or
ideally, *sendsig*() would have an API change to accept a siginfo_t, which
would be filled out by an MI function in the level above sendsig, and said MI
function would make a small call into MD code to fill out the MD parts (some
of which may be bogus, such as the si_addr stuff in some places). This would
eventually make it possible for parts of the kernel sending signals to set up
a siginfo with meaningful information.
Reviewed by: mux
MFC after: 2 weeks
|
|
|
|
|
| |
filling in the POSIX parts, when doing the same thing in every port of
FreeBSD.
|
|
|
|
| |
with 'Fill in POSIX parts'. (Diff reduction.)
|
|
|
|
|
|
|
|
|
| |
- add dependencies on opt_cpu.h and opt_kstack_pages.h to the linux module
Makefile in the i386 case. The latter is needed by an i386-only file, the
former by the i386 implementation of linux_sysvec.c (opt_cpu.h is used for
architecture-dependent options, so I added it only for i386, although this
file is also generated for the alpha).
- add a dependency on opt_kstack_pages.h to the pecoff module Makefile.
|
|
|
|
|
|
| |
to account for a NULL byte.
Submitted by: Jacques A. Vidrine <nectar@celabo.org>
|