Source-Changes-HG archive

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

[src/thorpej_scsipi]: src/sys/arch/dreamcast/dreamcast Add machdep file for p...



details:   https://anonhg.NetBSD.org/src/rev/7a2d5ecc60d5
branches:  thorpej_scsipi
changeset: 477365:7a2d5ecc60d5
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Wed Jan 17 00:07:24 2001 +0000

description:
Add machdep file for procfs. Currently only used for linux-style
/proc/cpuinfo (only active when procfs is mounted with -o linux).
For ports other than the i386 this currently produces an empty
string.

diffstat:

 sys/arch/dreamcast/dreamcast/procfs_machdep.c |  20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diffs (24 lines):

diff -r 4d96bb999834 -r 7a2d5ecc60d5 sys/arch/dreamcast/dreamcast/procfs_machdep.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/dreamcast/dreamcast/procfs_machdep.c     Wed Jan 17 00:07:24 2001 +0000
@@ -0,0 +1,20 @@
+/*     $NetBSD: procfs_machdep.c,v 1.1.2.2 2001/01/17 00:07:24 fvdl Exp $      */
+
+#include <sys/param.h>
+#include <sys/systm.h>
+#include <sys/mount.h>
+#include <sys/vnode.h>
+#include <miscfs/procfs/procfs.h>
+
+
+/*
+ * Linux-style /proc/cpuinfo.
+ * Only used when procfs is mounted with -o linux.
+ */
+int
+procfs_getcpuinfstr(char *buf, int *len)
+{
+       *len = 0;
+
+       return 0;
+}



Home | Main Index | Thread Index | Old Index