Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/miscfs/procfs Pull up revision 1.31 (requested by f...



details:   https://anonhg.NetBSD.org/src/rev/a2eef6ebd54d
branches:  netbsd-1-5
changeset: 491006:a2eef6ebd54d
user:      he <he%NetBSD.org@localhost>
date:      Fri Mar 30 21:47:21 2001 +0000

description:
Pull up revision 1.31 (requested by fvdl):
  Add some required Linux emulation bits to support the Linux
  version of VMware.

diffstat:

 sys/miscfs/procfs/procfs.h |  30 ++++++++++++++++++++++++------
 1 files changed, 24 insertions(+), 6 deletions(-)

diffs (75 lines):

diff -r f28c7ffef15e -r a2eef6ebd54d sys/miscfs/procfs/procfs.h
--- a/sys/miscfs/procfs/procfs.h        Fri Mar 30 21:47:02 2001 +0000
+++ b/sys/miscfs/procfs/procfs.h        Fri Mar 30 21:47:21 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: procfs.h,v 1.29 2000/03/16 18:08:26 jdolecek Exp $     */
+/*     $NetBSD: procfs.h,v 1.29.4.1 2001/03/30 21:47:21 he Exp $       */
 
 /*
  * Copyright (c) 1993 Jan-Simon Pendry
@@ -56,7 +56,9 @@
        Pnote,          /* process notifier */
        Pnotepg,        /* process group notifier */
        Pmap,           /* memory map */
-       Pcmdline        /* process command line args */
+       Pcmdline,       /* process command line args */
+       Pmeminfo,       /* system memory info (if -o linux) */
+       Pcpuinfo        /* CPU info (if -o linux) */
 } pfstype;
 
 /*
@@ -75,6 +77,15 @@
 #define PROCFS_NOTELEN 64      /* max length of a note (/proc/$pid/note) */
 #define PROCFS_CTLLEN  8       /* max length of a ctl msg (/proc/$pid/ctl */
 
+struct procfs_args {
+       int version;
+       int flags;
+};
+
+#define PROCFS_ARGSVERSION     1
+
+#define PROCFSMNT_LINUXCOMPAT  0x01
+
 /*
  * Kernel stuff follows
  */
@@ -93,6 +104,7 @@
 struct procfsmount {
        void *pmnt_exechook;
        struct mount *pmnt_mp;
+       int pmnt_flags;
 };
 
 #define VFSTOPROC(mp)  ((struct procfsmount *)(mp)->mnt_data)
@@ -133,6 +145,10 @@
     struct uio *));
 int procfs_docmdline __P((struct proc *, struct proc *, struct pfsnode *,
     struct uio *));
+int procfs_domeminfo __P((struct proc *, struct proc *, struct pfsnode *,
+    struct uio *));
+int procfs_docpuinfo __P((struct proc *, struct proc *, struct pfsnode *,
+    struct uio *));
 
 int procfs_checkioperm __P((struct proc *, struct proc *));
 void procfs_revoke_vnodes __P((struct proc *, void *));
@@ -140,13 +156,15 @@
 void procfs_hashdone __P((void));
 
 /* functions to check whether or not files should be displayed */
-int procfs_validfile __P((struct proc *));
-int procfs_validfpregs __P((struct proc *));
-int procfs_validregs __P((struct proc *));
-int procfs_validmap __P((struct proc *));
+int procfs_validfile __P((struct proc *, struct mount *));
+int procfs_validfpregs __P((struct proc *, struct mount *));
+int procfs_validregs __P((struct proc *, struct mount *));
+int procfs_validmap __P((struct proc *, struct mount *));
 
 int procfs_rw __P((void *));
 
+int procfs_getcpuinfstr __P((char *, int *));
+
 #define PROCFS_LOCKED  0x01
 #define PROCFS_WANT    0x02
 



Home | Main Index | Thread Index | Old Index