| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
for unknown events.
A number of modules return EINVAL in this instance, and I have left
those alone for now and instead taught MOD_QUIESCE to accept this
as "didn't do anything".
|
| |
|
|
|
|
|
|
| |
PR: 66828 (mostly)
Submitted by: Michel Lavondes <fox@vader.aacc.cc.md.us>
MFC after: 2 weeks
|
| |
|
|
|
|
|
|
| |
systems defined interfaces in thread_db.h use prgregset_t but not
prgregset_t * to be a output parameter, this is the only way to maintain
source code compatible with them.
|
|
|
|
| |
to fix.
|
|
|
|
|
|
| |
line as the announcement. Someone should probably update the "buffers
remaining" message since we now no longer should have any buffers remaining
at that point.
|
|
|
|
|
|
| |
TAILQ_FOREACH(), because the loop deletes elements from the list.
Reviewed by: marcel@
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Until now the function has just returned zero for any event, but
that is downright wrong for MOD_UNLOAD and not very useful for any
future events we add where it may be crucial to be able to tell
if the event was unhandled or successful.
Change the function to return as follows:
MOD_LOAD -> 0
MOD_UNLOAD -> EBUSY
anything else -> EOPNOTSUPP
|
| |
|
|
|
|
| |
ethernet headers is unsynchronized.
|
|
|
|
|
| |
that the locking of globals here isn't complete, and there's also a
locking issue relating to calling into and out of the tty code.
|
|
|
|
|
|
| |
Note that the table is a hack, and so is this mutex.
Reviewed by: glebius
|
|
|
|
|
|
| |
synchronization allocation of FEC unit numbers.
Reviewed by: glebius
|
|
|
|
|
|
|
| |
lock used to synchronize allocation of unit numbers for new netgraph
ethernet interfaces.
Reviewed by: glebius
|
|
|
|
|
|
|
|
| |
lock used to synchronize allocation of unit numbers for new netgraph
interfaces.
Reviewed by: glebius
Tested by: glebius
|
|
|
|
|
|
|
|
| |
when the battery is fully charged. That breaks some of the arithmetic in
calculating the remaining capacity (ends up with more than 100%).
This commit makes sure the max is 100.
Approved by: njl
|
|
|
|
|
|
|
|
|
|
| |
check to ensure that the caller is not prison root.
The intention is to fix file descriptor creation so that
prison root can not use the last remaining file descriptors.
This privilege should be reserved for non-jailed root users.
Approved by: bmilekic (mentor)
|
|
|
|
| |
Submitted by: "Ted Unangst" tedu at coverity.com
|
| |
|
|
|
|
|
| |
do I/O on the device. Otherwise the blocksize is undefined in the
buffer cache.
|
|
|
|
|
|
|
| |
While here also fix a (not less stupid) braino in IFQ_DRV_PURGE.
Reported-by: clement
Tested-by: clement (_PREPEND in sis(4))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
reduces the size of the pv_entry structure a small but significant amount.
This is implemented a little differently because it isn't so cheap to get
the physical address of the page tabke page on amd64.. instead of it
being directly accessible from the top level page directory, it is now
two additional tree levels down. However.. In almost all cases, we
recently had the physical address if the page table page a short while
before we needed it, but it slipped through our fingers. This patch
saves it for when we do need it. Also, for the one case where we do not
have the ptp paddr, we are always running in curproc context and so we
can do a vtopte-like trick. I've implemented vtopde() for this purpose.
There is still a CYA entry in pmap_unuse_pt() that needs to be removed. I
think it can be removed now but I forgot to test with it gone.
|
| |
|
| |
|
|
|
|
| |
Move the resource allocation into the bus front ends.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
linesw.
|
|
|
|
|
|
| |
page's dirty mask.
Reviewed by: gallatin@
|
| |
|
|
|
|
| |
prototype. (kldunloadf in this case)
|
|
|
|
|
|
| |
PG_WRITEABLE flag, not the PG_REFERENCED flag.
Submitted by: alc
|
|
|
|
|
|
|
|
|
| |
sched_add() rather than just doing it in sched_wakeup(). The old
ithread preemption code used to set NEEDRESCHED unconditionally if it
didn't preempt which masked this bug in SCHED_4BSD.
Noticed by: jake
Reported by: kensmith, marcel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a MOD_QUIESCE event for modules. This should return error (EBUSY)
of the module is in use.
MOD_UNLOAD should now only fail if it is impossible (as opposed to
inconvenient) to unload the module. Valid reasons are memory references
into the module which cannot be tracked down and eliminated.
When kldunloading, we abandon if MOD_UNLOAD fails, and if -force is
not given, MOD_QUIESCE failing will also prevent the unload.
For backwards compatibility, we treat EOPNOTSUPP from MOD_QUIESCE as
success.
Document that modules should return EOPNOTSUPP for unknown events.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
needed so that sysresource objects are created first to reserve all regions,
then other devices can allocate from them. Otherwise, acpi_timer (the only
ACPI device with an identify routine), would allocate its resources from
the nexus, causing the later sysresource reserve to fail.
Debugging by: Taku YAMAMOTO, Andrea Campi
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
definition so this one causes "redundant declaration" error and breaks
Alpha kernel build.
Reviewed by: gallatin@ and test build on beast
|
| |
|
|
|
|
| |
Make a separate function to check FDD type.
|
|
|
|
|
| |
hit the maximum number of processes. The last ten processes are reserved
for the *non-jailed* superuser.
|
|
|
|
| |
Fix miss merging in previous change.
|
| |
|