| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
not "NULL", see ascii(7).
|
|
|
|
| |
header update.
|
| |
|
|
|
|
|
| |
only used from generate files now, so we might as well generate the
right stuff from the start.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
and KASSERT coverage.
After this check there is only one "nasty" cast in this code but there
is a KASSERT to protect against the wrong argument structure behind
that cast.
Un-inlining the meat of VOP_FOO() saves 35kB of text segment on a typical
kernel with no change in performance.
We also now run the checking and tracing on VOP's which have been layered
by nullfs, umapfs, deadfs or unionfs.
Add new (non-inline) VOP_FOO_AP() functions which take a "struct
foo_args" argument and does everything the VOP_FOO() macros
used to do with checks and debugging code.
Add KASSERT to VOP_FOO_AP() check for argument type being
correct.
Slim down VOP_FOO() inline functions to just stuff arguments
into the struct foo_args and call VOP_FOO_AP().
Put function pointer to VOP_FOO_AP() into vop_foo_desc structure
and make VCALL() use it instead of the current offsetoff() hack.
Retire vcall() which implemented the offsetoff()
Make deadfs and unionfs use VOP_FOO_AP() calls instead of
VCALL(), we know which specific call we want already.
Remove unneeded arguments to VCALL() in nullfs and umapfs bypass
functions.
Remove unused vdesc_offset and VOFFSET().
Generally improve style/readability of the generated code.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
so we need to acquire Giant in netgraph methods, so that we don't
race with line discipline methods. Remove NET_NEEDS_GIANT.
- Packets coming into node from netgraph are queued in ifqueue
attached to node private data.
- Mutex in struct ifqueue is used to lock not only the queue, but
the whole private data, and tp->t_lsc field.
- tp->t_lsc pointer is used to indicate whether line discipline is
attached to netgraph or not.
- Use FLG_DIE flag to indicate that node may be destroyed.
(This protection doesn't work, and it didn't before. Must be redesigned.)
- Increment ngt_unit atomically, removing mutex.
- Acquire Giant, when executing ngt_start() from netgraph context.
- Acquire Giant, when {,de}registering line discipline.
- Uncomment forcing queue mode on peers hook, since this is reasonable.
- Force queue mode on our hook, to avoid acquiring Giant when coming from
network stack. We may already hold some mutexes at this point.
Cleanups:
- Use callout_pending() instead of our own flag.
- Remove spl(9) calls. Now we can use return() instead of ERROUT().
style(9):
- Sort includes.
- Sparse initializer for struct linesw.
- Remove some empty lines, sort declarations.
Reviewed by: julian, phk
MFC after: 1 month
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Use foo(void) instead of foo().
- Use static where applicable.
- Apply more const's when passing parameters
- signed/unsigned madness
- Avoid namespace collision by adding underscores.
- For 64-bit architectures, use %zx instead of %x
when necessary.
- When storing constants, use const instead of
variable.
- Bump WARNS?= from 2 to 6
|
|
|
|
| |
Submitted by: nectar
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
of len in tcp_output(), in the case where the FIN has already been
transmitted. The mis-computation of len is because of a gcc
optimization issue, which this change works around.
Submitted by: Mohan Srinivasan
|
|
|
|
|
|
|
|
|
|
|
| |
/* -> /*- for copyright notices. [2]
[1]:
PR: 41317
Submitted by: marck (original version)
[2]:
Discussed with: imp
|
| |
|
| |
|
|
|
|
|
| |
Suggested by: simon
Reviewed by: ru
|
|
|
|
|
|
|
|
|
| |
That should fix the problem with invalid PSM returned from bthidcontrol.
Pointy hat goes to me.
PR: misc/76107
Submitted by: Hiroyuki Aizu < aizu at navi dot org >
MFC after: 1 day
|
|
|
|
|
|
|
|
|
|
| |
interrupt is wired up to all the I/O APICs in the system. If the system
has only one I/O APIC, then just act as if the entry specified that APIC.
We still don't try to handle global entries in a system with multiple I/O
APICs.
Tested by: Peter Trifonov pvtrifonov at mail dot ru
MFC after: 1 week
|
|
|
|
|
|
| |
PR: 73183
Submitted by: Darrin Smith sdar at salseast dot org
MFC after: 7 days
|
| |
|
|
|
|
|
|
|
|
|
|
| |
up its pending error state, which may be set in some rare conditions resulting
in connect() syscall returning that bogus error and making application believe
that attempt to change association has failed, while it has not in fact.
There is sockets/reconnect regression test which excersises this bug.
MFC after: 2 weeks
|
| |
|
| |
|
|
|
|
|
| |
already associated datagram unix domain socket by issuing connect() system
call.
|
|
|
|
|
|
|
| |
user owns these directories or the sticky bit is unset may open security holes,
so simply create them at startup with the correct owner/mode.
MFC after: 1 day
|
|
|
|
|
|
|
| |
extent in UDF is only 32 bits, multiple extents can exist in a file.
Also clean up some minor whitespace problems.
Submitted by: John Wehle
|
|
|
|
|
| |
Submitted by: John Wehle, Andriy Gapon
MFC After: 3 days
|
|
|
|
|
| |
Also, add some hints to help people understand which
functions are most appropriate for typical uses.
|
|
|
|
|
|
| |
errno can be tampered potentially by nested signal handle.
Now all error codes are returned in negative value, positive value are
reserved for future expansion.
|
|
|
|
|
|
| |
PR: 75028
Submitted by: mteterin at 250-217 dot customer dot cloud9 dot net
MFC after: 7 days
|
|
|
|
|
|
| |
PR: 28890
Submitted by: matthias.andree at web dot de
MFC after: 7 days
|
|
|
|
|
|
|
|
| |
match.
PR: 28095
Submitted by: bill at twwells dot com
MFC after: 7 days
|
|
|
|
|
|
|
| |
As there are no tabs in maillog, reduce the expression so that only spaces
are used.
Problem raised by: Leif Neland root at internet dot dk
|
|\
| |
| |
| | |
which included commits to RCS files with non-trunk default branches.
|
| |
| |
| |
| |
| |
| |
| |
| | |
external source (i.e., _STA). The previous case only handled calls
occurring within AML. This should fix Toshibas, among others. Thanks
to Robert Moore of Intel for the fix.
MFC after: 2 days
|
| |
| |
| |
| |
| |
| |
| |
| | |
- bump .Dd
PR: 76088
Submitted by: Benjamin Lutz <benlutz@datacomm.ch>
MFC after: 3 days
|
| | |
|
| |
| |
| |
| | |
Discussed with: bde
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
the only way to convince gcc that they read the MXCSR. The volatile
annotation may be needed elsewhere as well.
|
| |
| |
| |
| | |
Reported by: sos
|