OpenBSD CVS

CVS log for src/lib/libkvm/kvm_file2.c


[BACK] Up to [local] / src / lib / libkvm

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.58 / (download) - annotate - [select for diffs], Sun Feb 11 21:29:12 2024 UTC (3 months, 4 weeks ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.57: +1 -2 lines
Diff to previous 1.57 (colored)

Remove needless includes of netinet6/ip6_var.h header in userland.

OK millert@

Revision 1.57 / (download) - annotate - [select for diffs], Tue Feb 22 17:35:01 2022 UTC (2 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.56: +1 -2 lines
Diff to previous 1.56 (colored)

MAXCOMLEN is no longer needed in these programs, so remove the annotation
from sys/param.h include lines, or remove the include lines entirely if
it this was the least requirement.
ok millert

Revision 1.56 / (download) - annotate - [select for diffs], Fri Sep 10 00:02:43 2021 UTC (2 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.55: +4 -2 lines
Diff to previous 1.55 (colored)

annotate what symbols are used from sys/param.h lines, or delete them
if not required.  when deleting, add sys/signal.h or other lines which
were not being pulled in

Revision 1.55 / (download) - annotate - [select for diffs], Fri Jan 25 00:19:25 2019 UTC (5 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)

I am retiring my old email address;  replace it with my OpenBSD one.

Revision 1.54 / (download) - annotate - [select for diffs], Fri Sep 7 07:24:05 2018 UTC (5 years, 9 months ago) by yasuoka
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored)

Fix "_nfiles" reference for crash dump.
Diff from fukaumi at soum.co.jp

ok mpi

Revision 1.53 / (download) - annotate - [select for diffs], Tue Jan 2 06:38:45 2018 UTC (6 years, 5 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.52: +2 -1 lines
Diff to previous 1.52 (colored)

Stop assuming <sys/file.h> will pull in fcntl.h when _KERNEL is defined.

ok millert@ sthen@

Revision 1.52 / (download) - annotate - [select for diffs], Sat Jan 21 05:42:04 2017 UTC (7 years, 4 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.51: +2 -15 lines
Diff to previous 1.51 (colored)

p_comm is the process's command and isn't per thread, so move it from
struct proc to struct process.

ok deraadt@ kettenis@

Revision 1.51 / (download) - annotate - [select for diffs], Mon Nov 7 00:26:33 2016 UTC (7 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.50: +9 -8 lines
Diff to previous 1.50 (colored)

Split PID from TID, giving processes a PID unrelated to the TID of their
initial thread

ok jsing@ kettenis@

Revision 1.50 / (download) - annotate - [select for diffs], Sun Oct 2 23:11:55 2016 UTC (7 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.49: +5 -1 lines
Diff to previous 1.49 (colored)

Add va_nlink information to struct kinfo_file (so bump the shlib minor)

from Sebastien Marie

Revision 1.49 / (download) - annotate - [select for diffs], Wed May 4 01:28:42 2016 UTC (8 years, 1 month ago) by zhuk
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.48: +14 -6 lines
Diff to previous 1.48 (colored)

Make KERN_FILE_BYPID return ESRCH when PID not found, both in sysctl and
offline paths. More polishing to come.

Input and okay bluhm@ & kettenis@.

Revision 1.48 / (download) - annotate - [select for diffs], Mon Apr 25 20:42:55 2016 UTC (8 years, 1 month ago) by tedu
Branch: MAIN
Changes since 1.47: +1 -12 lines
Diff to previous 1.47 (colored)

no more systrace

Revision 1.47 / (download) - annotate - [select for diffs], Fri Sep 4 02:58:14 2015 UTC (8 years, 9 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.46: +40 -35 lines
Diff to previous 1.46 (colored)

fix a race when fetching files from the kernel. the number of files
might have increased between when we got the number of files and
when we requested that number of files.

now we allocate another 10ish percent on top of what the kernel
says we need, and retry if that still isnt enough.

while here use realloc instead of constantly going through free/malloc
sequences.

with input from claudio@ deraadt@
ok millert@ guenther@

Revision 1.46 / (download) - annotate - [select for diffs], Fri Aug 28 04:38:47 2015 UTC (8 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

Rework the UNIX domain socket garbage collector, including ideas from
{Free,Net}BSD
 - when a socket is closed with fds in its input, defer closing them to
   a task to avoid recursing.  This eliminates the complicated extra
   reference taking which had a 37 line(!) comment explanation
 - move flags, counts, and links only needed for this from struct file to
   struct unpcb
 - document the flow of the mark/sweep collector

much help from claudio@ who made me explain the GC to him until we trusted it
ok claudio@ mpi@ deraadt@

Revision 1.45 / (download) - annotate - [select for diffs], Sat Mar 28 23:50:55 2015 UTC (9 years, 2 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.44: +5 -3 lines
Diff to previous 1.44 (colored)

Replace the hand-crafted list of datagram unix domain sockets with
a SLIST.
OK mpi@ benno@

Revision 1.44 / (download) - annotate - [select for diffs], Wed Feb 11 05:11:04 2015 UTC (9 years, 4 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.43: +32 -1 lines
Diff to previous 1.43 (colored)

Extend struct kinfo_file a bit for netstat (sync with the kernel).
Bump minor number because of this.
OK guenther@

Revision 1.43 / (download) - annotate - [select for diffs], Wed Feb 11 04:00:05 2015 UTC (9 years, 4 months ago) by guenther
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

Prefer arg != 0 over arg for non-boolean.  nitted kettenis@

Revision 1.42 / (download) - annotate - [select for diffs], Wed Feb 11 03:03:08 2015 UTC (9 years, 4 months ago) by guenther
Branch: MAIN
Changes since 1.41: +5 -6 lines
Diff to previous 1.41 (colored)

sysctl({CTL_KERN, KERN_FILE, KERN_FILE_BYFILE}) previously required
the extra argument to be zero; instead, make it filter on the file
type (DTYPE_*) when non-zero to make claudio's netstat work easier.

ok claudio@

Revision 1.41 / (download) - annotate - [select for diffs], Fri Jan 16 16:48:51 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.40: +2 -1 lines
Diff to previous 1.40 (colored)

Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther

Revision 1.40 / (download) - annotate - [select for diffs], Wed Nov 19 13:35:36 2014 UTC (9 years, 6 months ago) by krw
Branch: MAIN
Changes since 1.39: +1 -2 lines
Diff to previous 1.39 (colored)

Nuke yet more obvious #include duplications.

ok deraadt@

Revision 1.39 / (download) - annotate - [select for diffs], Mon Nov 3 17:20:46 2014 UTC (9 years, 7 months ago) by bluhm
Branch: MAIN
Changes since 1.38: +14 -6 lines
Diff to previous 1.38 (colored)

Put the socket splicing fields into a seperate struct sosplice that
gets only allocated when needed.  This way struct socket shrinks
from 472 to 392 bytes on amd64.  When splicing gets active, another
88 bytes are allocated for struct sosplice.
OK dlg@

Revision 1.38 / (download) - annotate - [select for diffs], Sat Oct 25 03:18:58 2014 UTC (9 years, 7 months ago) by lteo
Branch: MAIN
Changes since 1.37: +1 -2 lines
Diff to previous 1.37 (colored)

Remove unnecessary netinet/in_systm.h include.

ok millert@

Revision 1.37 / (download) - annotate - [select for diffs], Wed Oct 15 02:03:05 2014 UTC (9 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.36: +9 -7 lines
Diff to previous 1.36 (colored)

Apply reallocarray() idiom.
ok guenther

Revision 1.36 / (download) - annotate - [select for diffs], Fri Jul 4 05:58:31 2014 UTC (9 years, 11 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.35: +29 -29 lines
Diff to previous 1.35 (colored)

Track whether a process is a zombie or not yet fully built via flags
PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's
thread data.  This eliminates the need for the thread-level SDEAD state.

Change kvm_getprocs() (both the sysctl() and kvm backends) to report the
"most active" scheduler state for the process's threads.

tweaks kettenis@
feedback and ok matthew@

Revision 1.35 / (download) - annotate - [select for diffs], Sun Mar 30 21:54:49 2014 UTC (10 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.34: +4 -11 lines
Diff to previous 1.34 (colored)

Eliminates struct pcred by moving the real and saved ugids into
struct ucred; struct process then directly links to the ucred

Based on a discussion at c2k10 or so before noting that FreeBSD and
NetBSD did this too.

ok matthew@

Revision 1.34 / (download) - annotate - [select for diffs], Wed Feb 5 03:49:00 2014 UTC (10 years, 4 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.33: +10 -11 lines
Diff to previous 1.33 (colored)

More crash dump parsing fixes: correct paddr in process info and pids
in file info.  Drop some unnecessary casts and unused variables too.

ok millert@

Revision 1.33 / (download) - annotate - [select for diffs], Mon Jan 20 21:19:28 2014 UTC (10 years, 4 months ago) by guenther
Branch: MAIN
Changes since 1.32: +34 -46 lines
Diff to previous 1.32 (colored)

Threads can't be zombies, only processes, so change zombproc to zombprocess,
make it a list of processes, and change P_NOZOMBIE and P_STOPPED from thread
flags to process flags.  Add allprocess list for the code that just wants
to see processes.

ok tedu@

Revision 1.32 / (download) - annotate - [select for diffs], Mon Jan 20 04:27:32 2014 UTC (10 years, 4 months ago) by guenther
Branch: MAIN
Changes since 1.31: +4 -4 lines
Diff to previous 1.31 (colored)

p_textvp moved from struct proc to struct process

Revision 1.31 / (download) - annotate - [select for diffs], Sat Nov 16 00:37:11 2013 UTC (10 years, 6 months ago) by guenther
Branch: MAIN
Changes since 1.30: +2 -3 lines
Diff to previous 1.30 (colored)

Prep for hidden visibility: move the vnode/file related function
declarations, including _kvm_getftype(), into a new header, kvm_file.h,
so that we don't have to pull <sys/vnode.h> into all the .c files.  No
more extern function declaration in .c files.

ok millert@

Revision 1.30 / (download) - annotate - [select for diffs], Tue Nov 12 14:49:41 2013 UTC (10 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.29: +22 -13 lines
Diff to previous 1.29 (colored)

Apply format __attribute__ to _kvm_err() and fix the errors that it detects.
Treat failure to KREAD teh pcredd or ucreds to be errors insteading of
continuing with bogus data.

ok deraadt@ millert@

Revision 1.29 / (download) - annotate - [select for diffs], Tue Nov 12 05:04:29 2013 UTC (10 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.28: +6 -1 lines
Diff to previous 1.28 (colored)

a missing prototypes
and don't act like an unknown vnode type is "ok"

Revision 1.28 / (download) - annotate - [select for diffs], Tue Oct 22 16:40:26 2013 UTC (10 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.27: +65 -37 lines
Diff to previous 1.27 (colored)

- add UNIX-domain socket info to struct kinfo_file2
- convert netstat from kvm_getfiles() to kvm_getfile2() using that
- delete kvm_getfiles() and KERN_FILE as no longer used (bump libkvm's major)
- rename kvm_getfile2() to kvm_getfiles(), kinfo_file2 to kinfo_file
  and KERN_FILE2 to KERN_FILE.

ok deraadt@, millert@
ports scan sthen@

Revision 1.27 / (download) - annotate - [select for diffs], Wed Mar 20 14:46:45 2013 UTC (11 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

spaces

Revision 1.26 / (download) - annotate - [select for diffs], Thu Aug 23 06:21:21 2012 UTC (11 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.25: +1 -26 lines
Diff to previous 1.25 (colored)

knowledge of nnpfs can be removed

Revision 1.25 / (download) - annotate - [select for diffs], Sat Jun 2 05:44:27 2012 UTC (12 years ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.24: +4 -2 lines
Diff to previous 1.24 (colored)

Committed the wrong version (an earlier try) of the KERN_FILE2 vs
rthreads fix.  Update to the correct one.

Revision 1.24 / (download) - annotate - [select for diffs], Tue May 1 03:43:23 2012 UTC (12 years, 1 month ago) by guenther
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

Eliminate the f_usecount ref count in struct file; instead of sleeping
at the top of closef() until all in-progress calls finish, just do the
advisory locking bits required of close() by POSIX and let whichever
thread has the last reference do the call to the file's fo_close()
method and the final cleanup.

lots of discussion with deraadt@ and others; worked out with and ok krw@

Revision 1.23 / (download) - annotate - [select for diffs], Fri Apr 20 15:59:52 2012 UTC (12 years, 1 month ago) by guenther
Branch: MAIN
Changes since 1.22: +43 -14 lines
Diff to previous 1.22 (colored)

Fix kvm_deadfile2_byid()'s handling of kernel vs user addresses for
fd_ofiles and fd_ofileflags, reading in the separate allocation
when necessary.  Lets fstat -p and fstat -u work on kernel crash
dumps again.

ok millert@

Revision 1.22 / (download) - annotate - [select for diffs], Sat Apr 14 12:19:27 2012 UTC (12 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.21: +88 -91 lines
Diff to previous 1.21 (colored)

Make kvm_getfile2() have a fighting change to work correctly on crash
dumps

Revision 1.21 / (download) - annotate - [select for diffs], Wed Mar 28 16:01:30 2012 UTC (12 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

The kinfo_file2 structure's f_wbytes member was being filled with the
read byte count instead of the written byte count.

pointed out by paulm at tetrardus.net, ok dcoppa@

Revision 1.20 / (download) - annotate - [select for diffs], Tue Mar 13 17:28:51 2012 UTC (12 years, 3 months ago) by tedu
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

0 is a valid uid for files sysctl, don't skip it.  reminded by guenther

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jan 7 05:38:12 2012 UTC (12 years, 5 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.18: +32 -11 lines
Diff to previous 1.18 (colored)

Add rtable id and thread id to struct kinfo_proc (and fix process id)
and add an 'rtableid' keyword to ps.

Add rtable id, thread id, and socket splice info to struct kinfo_file2
and make fstat display socket splice information.

Remove old KVM_PROC2 and kinfo_proc2 interfaces; bump libkvm major

Socket splice info and corrections from bluhm@  "Lovely" deraadt@

Revision 1.18 / (download) - annotate - [select for diffs], Wed Dec 14 17:33:46 2011 UTC (12 years, 6 months ago) by guenther
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

The ktrace vnode has moved to struct process and changed name.
Missed commit pointed out by mikeb@

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jul 4 20:35:35 2011 UTC (12 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.16: +2 -3 lines
Diff to previous 1.16 (colored)

move the specfs code to a place people can see it; ok guenther thib krw

Revision 1.16 / (download) - annotate - [select for diffs], Sat Jul 17 19:27:07 2010 UTC (13 years, 10 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.15: +1 -3 lines
Diff to previous 1.15 (colored)

Move some macros in <msdosfs/denode.h> to outside the #ifdef _KERNEL
so that libkvm doesn't need to define that, thereby avoiding some warnings.

ok miod@

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jun 29 16:39:23 2010 UTC (13 years, 11 months ago) by guenther
Branch: MAIN
Changes since 1.14: +6 -1 lines
Diff to previous 1.14 (colored)

Fail instead of lying if a process asks sysctl()'s KERN_PROC2 or
KERN_FILE2 (or their libkvm wrappers) for more information than the
running implementation knows how to provide.

ok millert@ deraadt@

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jan 10 03:37:50 2010 UTC (14 years, 5 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.13: +1 -3 lines
Diff to previous 1.13 (colored)

Reimplement kvm_getproc2()'s support for reading crash dumps and
/dev/mem to be direct instead of going through kvm_getprocs(), as
that function is going to get more an more broken as we move stuff
from struct proc to struct process for rthreads.  To minimize the
code copying, put the common logic of filling in a kinfo_proc2
structure into a macro FILL_KPROC2() in <sys/sysctl.h> for use from
both the kernel and user-space.  This also hides the KERN_PROC
#define behind "#if defined(_KERNEL)||defined(_LIBKVM)", as it's
deprecated.

Positive feedback from millert and blambert; so committing to unblock
further rthreads work.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:28 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +1 -5 lines
Diff to previous 1.12 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jul 21 14:37:00 2009 UTC (14 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.11: +13 -2 lines
Diff to previous 1.11 (colored)

Support KERN_FILE_TEXT here too

Revision 1.11 / (download) - annotate - [select for diffs], Tue Jul 21 14:10:15 2009 UTC (14 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.10: +4 -2 lines
Diff to previous 1.10 (colored)

Handle the case where so_pcb is NULL.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jul 8 18:59:11 2009 UTC (14 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored)

correct kvm_getfile2 error string

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jun 24 13:04:24 2009 UTC (14 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.8: +9 -6 lines
Diff to previous 1.8 (colored)

Install ntfs includes and add libkvm (fstat) support.  ntfs bits
adapted from NetBSD fstat.  OK deraadt@

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jun 20 20:20:43 2009 UTC (14 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.7: +2 -5 lines
Diff to previous 1.7 (colored)

Move KREAD define to kvm_private.h

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jun 20 19:50:05 2009 UTC (14 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.6: +6 -25 lines
Diff to previous 1.6 (colored)

Split out cd9660 bits into their own .c file to avoid #define collisions
with ufs and add also udf support.  OK miod@

Revision 1.6 / (download) - annotate - [select for diffs], Sat Jun 20 13:10:21 2009 UTC (14 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.5: +59 -40 lines
Diff to previous 1.5 (colored)

Add msdosfs support now that we have the headers.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jun 19 19:07:27 2009 UTC (14 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored)

Quiet a gcc warning

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jun 11 17:00:31 2009 UTC (15 years ago) by chl
Branch: MAIN
Changes since 1.3: +5 -2 lines
Diff to previous 1.3 (colored)

add missing headers needed by free(), memset(), getuid() and strlcpy().

ok millert@

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jun 7 21:35:11 2009 UTC (15 years ago) by millert
Branch: MAIN
Changes since 1.2: +7 -4 lines
Diff to previous 1.2 (colored)

Define _KERNEL for the bare minimum.  We can include sys/proc.h
normally as long as we define __need_process and use a local
definition of struct proclist.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Jun 7 10:44:00 2009 UTC (15 years ago) by millert
Branch: MAIN
Changes since 1.1: +4 -4 lines
Diff to previous 1.1 (colored)

Avoid including machine/cpu.h

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jun 7 03:09:34 2009 UTC (15 years ago) by millert
Branch: MAIN

Add kvm_getfile2 which uses KERN_FILE2 when possible, falling
back on kmem grovelling for non-live kernels.  OK deraadt@

This form allows you to request diff's 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.