History log of /freebsd/sys/compat/linprocfs/linprocfs.c (Results 276 – 300 of 518)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/6.1.0_cvs, release/6.1.0
# 060e4882 05-May-2006 Doug Ambrisko <ambrisko@FreeBSD.org>

Enhance the Linux emulation layer to make MegaRAID SAS managements tool happy.
Add back in a scheme to emulate old type major/minor numbers via hooks into
stat, linprocfs to return major/minors that

Enhance the Linux emulation layer to make MegaRAID SAS managements tool happy.
Add back in a scheme to emulate old type major/minor numbers via hooks into
stat, linprocfs to return major/minors that Linux app's expect. Currently
only /dev/null is always registered. Drivers can register via the Linux
type shim similar to the ioctl shim but by using
linux_device_register_handler/linux_device_unregister_handler functions.
The structure is:

struct linux_device_handler {
char *bsd_driver_name;
char *linux_driver_name;
char *bsd_device_name;
char *linux_device_name;
int linux_major;
int linux_minor;
int linux_char_device;
};

Linprocfs uses this to display the major number of the driver. The
soon to be available linsysfs will use it to fill in the driver name.
Linux_stat uses it to translate the major/minor into Linux type values.

Note major numbers are dynamically assigned via passing in a -1 for
the major number so we don't need to keep track of them.

This is somewhat needed due to us switching to our devfs. MegaCli
will not run until I add in the linsysfs and mfi Linux compat changes.

Sponsored by: IronPort Systems

show more ...


# 26940197 11-Dec-2005 Max Laier <mlaier@FreeBSD.org>

Fix calculation of meminfo's swaptotal and swapfree on at least amd64.

MFC after: 3 days


# 2207c764 29-Nov-2005 Craig Rodrigues <rodrigc@FreeBSD.org>

Remove MNT_NODEV mount option. In RELENG_6, MNT_NODEV was a no-op.
The presence of MNT_NODEV was confusing the am-utils autoconf scripts.

PR: conf/79715


Revision tags: release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0
# 996358f5 06-Mar-2005 Maxim Sobolev <sobomax@FreeBSD.org>

Always produce cpuX entries, even in the case when there is only one CPU
in the system. This is consistent with what real linuxes do.

PR: kern/75848
Submitted by: Andriy Gapon <avg@icyb.net.ua>
MFC

Always produce cpuX entries, even in the case when there is only one CPU
in the system. This is consistent with what real linuxes do.

PR: kern/75848
Submitted by: Andriy Gapon <avg@icyb.net.ua>
MFC after: 3 days

show more ...


Revision tags: release/4.11.0_cvs, release/4.11.0
# 1997c537 14-Jan-2005 David E. O'Brien <obrien@FreeBSD.org>

Match the LINUX32's style with existing style
Submitted by: Jung-uk Kim <jkim@niksun.com>

Use positive, not negative logic.


# 898b0535 05-Jan-2005 Warner Losh <imp@FreeBSD.org>

Start each of the license/copyright comments with /*-


# 691b3b0d 01-Dec-2004 Colin Percival <cperciva@FreeBSD.org>

Fix unvalidated pointer dereference. This is FreeBSD-SA-04:17.procfs.


# 7689860f 10-Nov-2004 Poul-Henning Kamp <phk@FreeBSD.org>

Pick up the inode number using VOP_GETATTR() rather than caching it
in all vnodes on the off chance that linprocfs needs it. If we can afford
to call vn_fullpath() we can afford the much cheaper VOP

Pick up the inode number using VOP_GETATTR() rather than caching it
in all vnodes on the off chance that linprocfs needs it. If we can afford
to call vn_fullpath() we can afford the much cheaper VOP_GETATTR().

show more ...


Revision tags: release/5.3.0_cvs, release/5.3.0
# 84880f87 16-Aug-2004 Tim J. Robbins <tjr@FreeBSD.org>

Add support for 32-bit Linux binary emulation on amd64:
- include <machine/../linux32/linux.h> instead of <machine/../linux/linux.h>
if building with the COMPAT_LINUX32 option.
- make minimal chang

Add support for 32-bit Linux binary emulation on amd64:
- include <machine/../linux32/linux.h> instead of <machine/../linux/linux.h>
if building with the COMPAT_LINUX32 option.
- make minimal changes to the i386 linprocfs_docpuinfo() function to support
amd64. We return a fake CPU family of 6 for now.

show more ...


Revision tags: release/4.10.0_cvs, release/4.10.0
# c5b7c33b 01-Apr-2004 Pawel Jakub Dawidek <pjd@FreeBSD.org>

Remove ps_argsopen from this check, because of two reasons:
1. This check if wrong, because it is true by default
(kern.ps_argsopen is 1 by default) (p_cansee() is not even checked).
2. Sysctl ker

Remove ps_argsopen from this check, because of two reasons:
1. This check if wrong, because it is true by default
(kern.ps_argsopen is 1 by default) (p_cansee() is not even checked).
2. Sysctl kern.ps_argsopen is going away.

show more ...


Revision tags: release/5.2.1_cvs, release/5.2.1
# 38efe50c 09-Feb-2004 Dag-Erling Smørgrav <des@FreeBSD.org>

Remove VFS_STATFS() call which violated the lock order and wasn't
really required anyway.

PR: kern/61994
Submitted by: Bjoern Groenvall <bg@sics.se>


# 09dbf7a2 12-Jan-2004 Robert Watson <rwatson@FreeBSD.org>

Correct for proper vn_fullpath() failure mode: "== -1" -> "!= 0"

Discussed with: des


Revision tags: release/5.2.0_cvs, release/5.2.0
# 277b6204 02-Jan-2004 Alan Cox <alc@FreeBSD.org>

Lock the traversal of the vm object list. Use TAILQ_FOREACH consistently.


# 3f907e34 07-Dec-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Use mp_ncpus instead of the hw.ncpu sysctl.


Revision tags: release/4.9.0_cvs, release/4.9.0
# c92dcdd9 20-Oct-2003 Olivier Houchard <cognet@FreeBSD.org>

Various style and type fixes in my last commit.

Suggested by: mux


# faf1e147 19-Oct-2003 Olivier Houchard <cognet@FreeBSD.org>

Implement partially /proc/<pid>/maps.
It looks enough to make SImics run.

Reviewed by: des


# 1827b9e9 08-Oct-2003 Andrew Gallatin <gallatin@FreeBSD.org>

make kernel_sysctl()'s args match its prototype in order to fix the
alpha build


# 7ea97b60 30-Sep-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Fix a (fortunately harmless) signed / unsigned bug.


# e705f0f0 22-Sep-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Previous commit contained too-smart-for-its-own-good code that might
produce incorrect (though harmless) output on single-CPU systems.


# e54c4ad8 22-Sep-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Fake multi-cpu statistics for proc/stat by dividing the totals by the
number of CPUs.

PR: kern/27522


# 7d10d055 09-Sep-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Fix some broken comments.


# 0dd872f5 09-Sep-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Add cwd, root and statm (modeled on a 2.4.20 kernel). De-obfuscate
linprocfs_init() a little and remove some gratuitous whitespace.


# 9a69494e 18-Aug-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Whitespace cleanup.


# 3e25ce23 17-Aug-2003 Marcel Moolenaar <marcel@FreeBSD.org>

Cleanup <machine/cpu.h> by moving MD prototypes to <machine/md_var.h>
like we have on other platforms. Move savectx() to <machine/pcb.h>.
A lot of files got these MD prototypes through the indirect i

Cleanup <machine/cpu.h> by moving MD prototypes to <machine/md_var.h>
like we have on other platforms. Move savectx() to <machine/pcb.h>.
A lot of files got these MD prototypes through the indirect inclusion
of <machine/cpu.h> and now need to include <machine/md_var.h>. The
number of which is unexpectedly large...

osf1_misc.c especially is tricky because szsigcode is redefined in
one of the osf1 header files. Reordering of the include files was
needed.

linprocfs.c now needs an explicit extern declaration.

Tested with: LINT

show more ...


# bccbc20f 04-Aug-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Add support for multiple CPUs to cpuinfo.


1...<<1112131415161718192021