DragonFly BSD

CVS log for src/sys/netinet/in_pcb.c

[BACK] Up to [DragonFly] / src / sys / netinet

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Nov 8 03:38:23 2008 UTC (5 years, 5 months ago) by sephe
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.47: preferred, unified
Changes since revision 1.47: +2 -14 lines
The workaround is no longer needed after netinet/tcp_subr.c rev1.62

Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Sep 11 11:23:29 2008 UTC (5 years, 7 months ago) by sephe
Branches: MAIN
Diff to: previous 1.46: preferred, unified
Changes since revision 1.46: +14 -2 lines
- Add rtfree_remote(), which send rtentry to its owner CPU to be freed.
  Print backtrace, if net.route.remote_free_panic is 0.  This function
  only serves as _temporary_ workaround.
- In ip_output(), if passed rtentry cache's owner CPU is not the current,
  then keep it untouched and use the stack variable to relocate the route.
  Add comment about it.  This at least could happen in the following
  callgraph on a TCP socket, on which listen(2) has been called:
  ip_input() -> tcp_input() -> tcp_respond() -> ip_output()

Related to Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1134>

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sun Jun 8 08:38:05 2008 UTC (5 years, 10 months ago) by sephe
Branches: MAIN
CVS tags: DragonFly_RELEASE_2_0_Slip, DragonFly_RELEASE_2_0, DragonFly_Preview
Diff to: previous 1.45: preferred, unified
Changes since revision 1.45: +15 -7 lines
Parallelize in_ifaddrhead operation

Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed Mar 26 14:44:59 2008 UTC (6 years ago) by sephe
Branches: MAIN
Diff to: previous 1.44: preferred, unified
Changes since revision 1.44: +17 -6 lines
Fix bugs concerning cached route entry in UDP inpcb.

For an unconnected and unbound UDP socket, first sending calls in_pcbladdr()
to fix the local port, which may change the target CPU of the next sending.
in_pcbladdr() has a side effect to allocate the route entry cached in inpcb.
If the target CPU after in_pcbladdr() is no longer the current CPU, then
the route entry will be accessed/freed on non-owner CPU during later sending.
Similarly, connect/disconnect a UDP socket may change the target CPU too; the
target CPU may no longer the owner of the cached route entry.

So, for the first sending happens on an unconnected and unbound UDP socket,
the target CPU of next sending is compared with the current CPU.  If they
are different, then cached route entry will be freed, so next time a packet
sent on this socket, a new route entry owned by the correct CPU will be
cached.  Same target CPU check is applied to UDP socket connect/disconnect.

Originally UDP PRU_CONNECT always happens on CPU0, which will cause problem if
following conditions are met:
- Dst of the cached route entry is different from the dst to be connected
- Cached route entry is not allocated on CPU0
This could happen if two datagram are sent on an unbounded and unconnected UDP
socket, then later connectting this UDP socket will cause cached route entry
being freed on different CPU.  To solve this problem, PRU_CONNECT is dispatched
according to existing [lf]{addr,port} pairs.

If in_pcbladdr() fails after altering the cached route entry, the cached route
entry is freed to make sure that freeing this cached route entry happens on
its owner CPU.

Reported-by: y0netan1@
Tested-by: y0netan1@

Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed Dec 19 11:10:42 2007 UTC (6 years, 4 months ago) by sephe
Branches: MAIN
CVS tags: DragonFly_RELEASE_1_12_Slip, DragonFly_RELEASE_1_12
Diff to: previous 1.43: preferred, unified
Changes since revision 1.43: +1 -1 lines
cOPy?  o.O

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Mar 4 18:51:59 2007 UTC (7 years, 1 month ago) by swildner
Branches: MAIN
CVS tags: DragonFly_RELEASE_1_10_Slip, DragonFly_RELEASE_1_10
Diff to: previous 1.42: preferred, unified
Changes since revision 1.42: +0 -17 lines
Remove weird license clause which has expired.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Thu Jan 18 12:34:46 2007 UTC (7 years, 3 months ago) by victor
Branches: MAIN
CVS tags: DragonFly_RELEASE_1_8_Slip, DragonFly_RELEASE_1_8
Diff to: previous 1.41: preferred, unified
Changes since revision 1.41: +8 -9 lines
Fix a stack reference bug and do a cleanup.

Reported-By: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
Bug-ID: Issue518
Commited-On-Behalf-Of: Simon 'corecode' Schubert <corecode@fs.ei.tum.de>

Revision 1.41: download - view: text, markup, annotated - select for diffs
Fri Dec 29 18:02:56 2006 UTC (7 years, 3 months ago) by victor
Branches: MAIN
Diff to: previous 1.40: preferred, unified
Changes since revision 1.40: +131 -51 lines
Made jails IPv6 aware and support more than one IP address.

Based-on: Pawel Jakub Dawidek mijail patches.
Reviewed-by: Simon 'corecode' Schubert, Thomas E. Spanjaard, et al.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Dec 5 23:31:57 2006 UTC (7 years, 4 months ago) by dillon
Branches: MAIN
Diff to: previous 1.39: preferred, unified
Changes since revision 1.39: +3 -3 lines
Local variables that were improperly named 'errno' must be renamed so as
not to conflict with libc's errno, when building a virtual kernel.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Tue Sep 5 00:55:48 2006 UTC (7 years, 7 months ago) by dillon
Branches: MAIN
Diff to: previous 1.38: preferred, unified
Changes since revision 1.38: +7 -7 lines
Rename malloc->kmalloc, free->kfree, and realloc->krealloc.  Pass 1

Revision 1.38: download - view: text, markup, annotated - select for diffs
Tue Jan 31 19:05:40 2006 UTC (8 years, 2 months ago) by dillon
Branches: MAIN
CVS tags: DragonFly_RELEASE_1_6_Slip, DragonFly_RELEASE_1_6
Diff to: previous 1.37: preferred, unified
Changes since revision 1.37: +1 -1 lines
Bring in the parallel route table code and clean up ARP.  The
route table is now replicated across all cpus (ncpus, not ncpus2).
Note that cloned routes are not replicated.

This removes one of the few remaining obstacles to being able
to run the network protocol stacks without the BGL.

Primary-Design-by: Jeffrey Hsu
Work-by: Jeffrey Hsu and Matthew Dillon

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sat Jan 14 11:33:50 2006 UTC (8 years, 3 months ago) by swildner
Branches: MAIN
Diff to: previous 1.36: preferred, unified
Changes since revision 1.36: +15 -37 lines
* Remove (void) casts for discarded return values.

* Put function types on separate lines.

* Ansify function definitions.

* Remove __P.

In-collaboration-with: Alexey Slynko <slynko@tronet.ru>

Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Jun 2 23:52:42 2005 UTC (8 years, 10 months ago) by dillon
Branches: MAIN
CVS tags: DragonFly_RELEASE_1_4_Slip, DragonFly_RELEASE_1_4
Diff to: previous 1.35: preferred, unified
Changes since revision 1.35: +12 -14 lines
Remove spl*() calls from netinet, replacing them with critical sections.
A slight rearrangement of COMMON_START() in tcp_usrreq.c was necessary to
ensure that the inp is loaded after  entering the critical section.

Revision 1.34.2.1: download - view: text, markup, annotated - select for diffs
Mon May 23 18:34:49 2005 UTC (8 years, 10 months ago) by dillon
Branches: DragonFly_RELEASE_1_2
CVS tags: DragonFly_RELEASE_1_2_Slip
Diff to: previous 1.34: preferred, unified; next MAIN 1.35: preferred, unified
Changes since revision 1.34: +1 -0 lines
MFC 1.35.  Minor kernel stack memory disclosure.

Security: FreeBSD-SA-05:08.kmem

Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri May 6 11:52:02 2005 UTC (8 years, 11 months ago) by corecode
Branches: MAIN
Diff to: previous 1.34: preferred, unified
Changes since revision 1.34: +1 -0 lines
Bring in fix from FreeBSD/cperciva:
  Log:
  If we are going to
  1. Copy a NULL-terminated string into a fixed-length buffer, and
  2. copyout that buffer to userland,
  we really ought to
  0. Zero the entire buffer
  first.

  Security: FreeBSD-SA-05:08.kmem

Thanks to Colin Percival for notifying us!

Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Mar 4 03:48:25 2005 UTC (9 years, 1 month ago) by hsu
Branches: MAIN
CVS tags: DragonFly_Stable
Branch point for: DragonFly_RELEASE_1_2
Diff to: previous 1.33: preferred, unified
Changes since revision 1.33: +11 -12 lines
Cosmetic changes only.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Feb 8 22:56:19 2005 UTC (9 years, 2 months ago) by hsu
Branches: MAIN
Diff to: previous 1.32: preferred, unified
Changes since revision 1.32: +2 -2 lines
Now that 'so_pcb' is properly declared as a 'void *', remove a layer of
indirection and directly use 'so->so_pcb' in place of 'sotoinpcb(so)'.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Jan 6 09:14:13 2005 UTC (9 years, 3 months ago) by hsu
Branches: MAIN
Diff to: previous 1.31: preferred, unified
Changes since revision 1.31: +4 -5 lines
Cosmetic cleanups.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Dec 30 05:14:30 2004 UTC (9 years, 3 months ago) by hsu
Branches: MAIN
Diff to: previous 1.30: preferred, unified
Changes since revision 1.30: +0 -11 lines
Back out port randomization.  FreeBSD users report problems with it under load.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Fri Dec 24 02:22:14 2004 UTC (9 years, 3 months ago) by dillon
Branches: MAIN
Diff to: previous 1.29: preferred, unified
Changes since revision 1.29: +7 -4 lines
Add a missing initialization for the error variable which resulted in netstat
reporting a bogus sysctl error.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Dec 21 02:54:15 2004 UTC (9 years, 4 months ago) by hsu
Branches: MAIN
Diff to: previous 1.28: preferred, unified
Changes since revision 1.28: +11 -11 lines
Clean up the routing and networking code before I parallelize routing.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Dec 20 11:03:16 2004 UTC (9 years, 4 months ago) by joerg
Branches: MAIN
Diff to: previous 1.27: preferred, unified
Changes since revision 1.27: +1 -25 lines
Remove the userland visible part of the socket generation counting.
As a side issue, the CPU used for processing a PCB isn't shown anymore,
since this is currently not included by the userland sockets.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Dec 3 20:29:53 2004 UTC (9 years, 4 months ago) by joerg
Branches: MAIN
Diff to: previous 1.26: preferred, unified
Changes since revision 1.26: +88 -0 lines
Replace div_pcblist / rip_pcblist / udp_pcblist with in_pcblist_global.
This is a slight change of semantic for rip sockets, which have now a
jail check too.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri Oct 15 22:59:10 2004 UTC (9 years, 6 months ago) by hsu
Branches: MAIN
Diff to: previous 1.25: preferred, unified
Changes since revision 1.25: +2 -2 lines
Update includes now that the Fast IPSec code has moved to netproto/ipsec.

Submitted by:  Pawel Biernacki <kaktus@dragonflybsd.pl>

Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed Aug 11 02:36:22 2004 UTC (9 years, 8 months ago) by dillon
Branches: MAIN
CVS tags: DragonFly_Snap29Sep2004, DragonFly_Snap13Sep2004
Diff to: previous 1.24: preferred, unified
Changes since revision 1.24: +4 -0 lines
Add a state to sanity check tcp_close() to make sure it is not called
twice.

Add a 'cpu' field to the inpcb so the cpu owning a pcb can be made
well-known, for use in later assertions as we move closer to removing
the BGL.

Fix a bug in the closing of listen sockets.  The inp wildcard hash table
removal was being done asynchronously with the freeing of the inp, which
could lead to problems.  Instead of sending messages in parallel to all tcp
protocol threads to remove the wildcard hash we instead chain a single
message through all tcp protocol threads to remove the hash, then detach the
inp at the end of the chain.

There is still an issue with the socket being ripped out from under other
protocol threads which might be trying to accept connections on behalf of
the listen socket which must be resolved before the BGL can be removed (amoung
other things).

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Jul 8 22:07:35 2004 UTC (9 years, 9 months ago) by hsu
Branches: MAIN
CVS tags: DragonFly_1_0_REL, DragonFly_1_0A_REL
Diff to: previous 1.23: preferred, unified
Changes since revision 1.23: +50 -1 lines
Add the standard DragonFly copyright notice to go along with mine.

Approved by:	Matt

Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Jul 2 16:45:22 2004 UTC (9 years, 9 months ago) by hmp
Branches: MAIN
Diff to: previous 1.22: preferred, unified
Changes since revision 1.22: +11 -0 lines
Randomize ephermal source ports.

This option is controlled by the net.inet.ip.portrange.randomized sysctl
and it is enabled by default.

Obtained-from:  	FreeBSD

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Jun 7 02:36:22 2004 UTC (9 years, 10 months ago) by dillon
Branches: MAIN
CVS tags: DragonFly_1_0_RC1
Diff to: previous 1.21: preferred, unified
Changes since revision 1.21: +15 -1 lines
Add in_pcbinfo_init() to encapsulate basic structural setup (right now just
the LIST_INIT).  Rename inpcbinfo->listhead to inpcbinfo->pcblisthead due
to changes in the API (addition of markers).

Add support for markers in the inpcbinfo->pcblisthead lists of INPCB
structures.  Use markers in sysctl output code to iterate through these lists
without losing its place or having to worry about structures being ripped out
from under it.  Scrap the original two-pass code.

Redo the sysctl INPCB output code for tcp, udp, and other protocols so we
always output the correct number of structures (as specified in xig_count).

Generate output for all cpus (for TCP).  This is accomplished by using
lwkt_setcpu_self() to migrate the kernel thread to each cpu, which allows us
to iterate the list(s) managed by that cpu without having to deal with mutexes
or other forms of locks.  Iterations always wind up on the same cpu they began
on.

Redo netstat to properly iterate across as many cpu chunks as the inpcb
sysctl's return, rather then just the first one.

Work-by: Hiten Pandya and Matthew Dillon

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat May 8 13:30:52 2004 UTC (9 years, 11 months ago) by hmp
Branches: MAIN
Diff to: previous 1.20: preferred, unified
Changes since revision 1.20: +2 -0 lines
KKASSERT that we require inp->inp_pcbinfo, in in_pcbinswildcardhash().

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Apr 24 04:47:29 2004 UTC (9 years, 11 months ago) by hsu
Branches: MAIN
Diff to: previous 1.19: preferred, unified
Changes since revision 1.19: +27 -19 lines
Replicate the TCP listen table to give each cpu its own copy.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Apr 22 04:35:45 2004 UTC (10 years ago) by dillon
Branches: MAIN
Diff to: previous 1.18: preferred, unified
Changes since revision 1.18: +1 -1 lines
M_NOWAIT to mostly M_INTWAIT conversions, with a splattering of
M_NULLOK to prevent exhaustion attacks from crashing the system.

Note in patricular that the MALLOC tseg_qent for the tcp reassembly
queue went from M_NOWAIT to M_INTWAIT | M_NULLOK.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Apr 18 20:05:09 2004 UTC (10 years ago) by hsu
Branches: MAIN
Diff to: previous 1.17: preferred, unified
Changes since revision 1.17: +37 -15 lines
Allow an inp control block to be inserted on multiple wildcard hash tables.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Apr 10 00:10:42 2004 UTC (10 years ago) by hsu
Branches: MAIN
Diff to: previous 1.16: preferred, unified
Changes since revision 1.16: +3 -3 lines
Send connects to the right processor.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Mar 31 00:43:09 2004 UTC (10 years ago) by hsu
Branches: MAIN
Diff to: previous 1.15: preferred, unified
Changes since revision 1.15: +17 -25 lines
Only enter wildcard sockets into the wildcard hash table.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Mar 21 07:15:36 2004 UTC (10 years, 1 month ago) by hsu
Branches: MAIN
Diff to: previous 1.14: preferred, unified
Changes since revision 1.14: +1 -3 lines
Cosmetic cleanup.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Mar 6 05:00:41 2004 UTC (10 years, 1 month ago) by hsu
Branches: MAIN
Diff to: previous 1.13: preferred, unified
Changes since revision 1.13: +1 -1 lines
Change the "struct inpcbhead *listhead" field in "struct inpcbinfo"
to "struct inpcbhead listhead" so we can have a separate list per
"struct inpcbinfo" when it becomes per-cpu.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Mar 6 03:20:02 2004 UTC (10 years, 1 month ago) by hsu
Branches: MAIN
Diff to: previous 1.12: preferred, unified
Changes since revision 1.12: +1 -1 lines
Correct double increment of the inp generation count.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Mar 5 16:57:15 2004 UTC (10 years, 1 month ago) by hsu
Branches: MAIN
Diff to: previous 1.11: preferred, unified
Changes since revision 1.11: +1 -1 lines
Once we distribute socket protocol processing requests to different
processors, we no longer have a process context to refer to, so
eliminate the use of curproc in soreserve() by passing the sockbuf
resource limit all the down from the system call code to sbreserve().

Eliminate the use of curproc in unp_attach() by passing down the
fields it needs from the proc structure.  Define a pru_attach_info
structure to hold the information the attach usrreq function requires.

The thread argument to in_pcballoc() is unused, so we don't need
to pass a thread structure down to in_pcballoc().

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Mar 4 01:02:05 2004 UTC (10 years, 1 month ago) by hsu
Branches: MAIN
Diff to: previous 1.10: preferred, unified
Changes since revision 1.10: +159 -128 lines
Split out wildcarded sockets from the connection hash table.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Feb 27 09:40:36 2004 UTC (10 years, 1 month ago) by hsu
Branches: MAIN
Diff to: previous 1.9: preferred, unified
Changes since revision 1.9: +130 -138 lines
Cosmetic changes.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Feb 8 06:01:16 2004 UTC (10 years, 2 months ago) by hmp
Branches: MAIN
Diff to: previous 1.8: preferred, unified
Changes since revision 1.8: +6 -6 lines
Merge from FreeBSD:

	Don't use the cached inp->inp_route unless it is marked
	as RTF_UP; this fixes a panic when an interface is detached
	(in event of suspend/resume).

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Aug 23 11:18:00 2003 UTC (10 years, 7 months ago) by rob
Branches: MAIN
Diff to: previous 1.7: preferred, unified
Changes since revision 1.7: +1 -1 lines
if ipv6 doesnt need oldstyle prototypes maybe its time we took them out
of ipv4's code

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Aug 7 21:54:32 2003 UTC (10 years, 8 months ago) by dillon
Branches: MAIN
Diff to: previous 1.6: preferred, unified
Changes since revision 1.6: +1 -1 lines
kernel tree reorganization stage 1: Major cvs repository work (not logged as
commits) plus a major reworking of the #include's to accomodate the
relocations.

    * CVS repository files manually moved.  Old directories left intact
      and empty (temporary).

    * Reorganize all filesystems into vfs/, most devices into dev/,
      sub-divide devices by function.

    * Begin to move device-specific architecture files to the device
      subdirs rather then throwing them all into, e.g. i386/include

    * Reorganize files related to system busses, placing the related code
      in a new bus/ directory.  Also move cam to bus/cam though this may
      not have been the best idea in retrospect.

    * Reorganize emulation code and place it in a new emulation/ directory.

    * Remove the -I- compiler option in order to allow #include file
      localization, rename all config generated X.h files to use_X.h to
      clean up the conflicts.

    * Remove /usr/src/include (or /usr/include) dependancies during the
      kernel build, beyond what is normally needed to compile helper
      programs.

    * Make config create 'machine' softlinks for architecture specific
      directories outside of the standard <arch>/include.

    * Bump the config rev.

    WARNING! after this commit /usr/include and /usr/src/sys/compile/*
    should be regenerated from scratch.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Jul 26 21:00:04 2003 UTC (10 years, 8 months ago) by rob
Branches: MAIN
Diff to: previous 1.5: preferred, unified
Changes since revision 1.5: +11 -11 lines
Register keyword removal

Approved by: Matt Dillon

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Jul 6 21:23:52 2003 UTC (10 years, 9 months ago) by dillon
Branches: MAIN
Diff to: previous 1.4: preferred, unified
Changes since revision 1.4: +4 -4 lines
MP Implementation 1/2: Get the APIC code working again, sweetly integrate the
MP lock into the LWKT scheduler, replace the old simplelock code with
tokens or spin locks as appropriate.  In particular, the vnode interlock
(and most other interlocks) are now tokens.  Also clean up a few curproc/cred
sequences that are no longer needed.

The APs are left in degenerate state with non IPI interrupts disabled as
additional LWKT work must be done before we can really make use of them,
and FAST interrupts are not managed by the MP lock yet.  The main thing
for this stage was to get the system working with an APIC again.

buildworld tested on UP and 2xCPU/MP (Dell 2550)

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Jun 25 03:56:04 2003 UTC (10 years, 9 months ago) by dillon
Branches: MAIN
CVS tags: PRE_MP
Diff to: previous 1.3: preferred, unified
Changes since revision 1.3: +29 -28 lines
proc->thread stage 4: rework the VFS and DEVICE subsystems to take thread
pointers instead of process pointers as arguments, similar to what FreeBSD-5
did.  Note however that ultimately both APIs are going to be message-passing
which means the current thread context will not be useable for creds and
descriptor access.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Jun 23 17:55:46 2003 UTC (10 years, 9 months ago) by dillon
Branches: MAIN
Diff to: previous 1.2: preferred, unified
Changes since revision 1.2: +8 -8 lines
proc->thread stage 2: MAJOR revamping of system calls, ucred, jail API,
and some work on the low level device interface (proc arg -> thread arg).
As -current did, I have removed p_cred and incorporated its functions
into p_ucred.  p_prison has also been moved into p_ucred and adjusted
accordingly.  The jail interface tests now uses ucreds rather then processes.

The syscall(p,uap) interface has been changed to just (uap).  This is inclusive
of the emulation code.  It makes little sense to pass a proc pointer around
which confuses the MP readability of the code, because most system call code
will only work with the current process anyway.  Note that eventually
*ALL* syscall emulation code will be moved to a kernel-protected userland
layer because it really makes no sense whatsoever to implement these
emulations in the kernel.

suser() now takes no arguments and only operates with the current process.
The process argument has been removed from suser_xxx() so it now just takes
a ucred and flags.

The sysctl interface was adjusted somewhat.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Jun 17 04:28:51 2003 UTC (10 years, 10 months ago) by dillon
Branches: MAIN
Diff to: previous 1.1: preferred, unified
Changes since revision 1.1: +1 -0 lines
Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids.  Most
ids have been removed from !lint sections and moved into comment sections.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Jun 17 02:55:33 2003 UTC (10 years, 10 months ago) by dillon
Branches: MAIN
CVS tags: FREEBSD_4_FORK
import from FreeBSD RELENG_4 1.59.2.26

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options