Commit Graph

160470 Commits

Author SHA1 Message Date
xtraeme d11db10f38 Add more debugging printfs to catch sensors with duplicate description,
and some cosmetic ones.
2007-07-17 17:56:04 +00:00
joerg e4fc1154a4 Add native mremap system call based on the UVM implementation for
Linux compat. Add code to enforce alignment of the new location.
Special thanks to wizd for helping with the man page.
2007-07-17 17:42:07 +00:00
xtraeme 8b1500977e - Return the value returned by prop_dictionary_{recv,send}_ioctl
in all cases.
- Skip sensors that do not have a description object in its dictionary.
2007-07-17 17:40:59 +00:00
xtraeme 92f4397e50 Explain a bit more about edata->desc being unique in a device. 2007-07-17 17:10:58 +00:00
xtraeme fc370c98c4 Skip sensors with the same description on the same device at attach time,
if the description of it is not unique, mark the sensor with
ENVSYS_FDUPDESC, return EEXIST and continue.

Also, when changing a description, check that the new description is not
assigned by any other sensor, otherwise return EEXIST.

Note that these restrictions are only per device. Fixes PR kern/36660.
2007-07-17 16:47:58 +00:00
daniel bcb48b7bb5 Add VIA_PADLOCK. 2007-07-17 16:40:21 +00:00
pooka ce80f00ff3 With fullpath support we need to check name lengths also, otherwise
lookup for "foo" will match "foobar".
2007-07-17 16:33:27 +00:00
pooka 9ee5fb2795 nuke accidental debug printf 2007-07-17 16:00:56 +00:00
xtraeme 0a6f85e0f3 Only allow to use ENVSYS_SETDICTIONARY if the user has write permission
in the /dev/sysmon device.

Use O_RDONLY for ENVSYS_GETDICTIONARY and O_RDWR for ENVSYS_SETDICTIONARY
in envstat(8).

Fixes PR kern/36661 by YAMAMOTO Takashi.
2007-07-17 15:43:08 +00:00
he 8f6c85ab27 Patterned after sgimips, move include of <machine/intr.h> to only be done
when _KERNEL is defined and _LOCORE isn't.  Fixes build problem in the
extent regression test.
2007-07-17 14:36:25 +00:00
xtraeme e8d5f35d1f Do not shutdown the system when a critical event is received, this
doesn't work when there are two or more batteries in acpibat(4).
2007-07-17 13:56:25 +00:00
xtraeme 2577f77bbc Add the -r flag, which is a dummy flag... only added for compatibility
reasons.
2007-07-17 13:12:46 +00:00
pooka 91896524c2 Don't attempt to start megamaid if run with MNT_GETARGS. 2007-07-17 12:39:24 +00:00
pooka 0038fe558b Use "sysctlfs" as the type name instead of the mountpath.
Methinks it's nicer that way.
2007-07-17 12:03:46 +00:00
pooka 08db7d7534 * add mntfromname parameter to puffs_init()
* set it in file servers
2007-07-17 11:34:51 +00:00
pooka 0450206384 Set a file server supplied file system type in the type field and set
the mntfromname to be the place mounted from instead of the type.
2007-07-17 11:29:43 +00:00
pooka 880e1d1d6f 4.99.24 - set_statvfs_info() vfsname parameter 2007-07-17 11:27:11 +00:00
pooka e24b0872a4 Make set_statvfs_info() take a parameter for the vfs name instead
of always retrieving it from mp->mnt_op->vfs_name

christos ok
2007-07-17 11:19:31 +00:00
he dc396e3ae7 Adapt to the new signature of kthread_create(), and the removal
of kthread_create1().
2007-07-17 11:16:14 +00:00
yamt bc1bb99dc5 remove (void)0; nonsense. 2007-07-17 10:24:10 +00:00
yamt 9dc12587a5 fix a typo in a comment. 2007-07-17 10:23:33 +00:00
pooka b50bf77666 _PATH_PUFFS 2007-07-17 10:14:33 +00:00
pooka 90ba17c197 support standard user@host:path mount argument 2007-07-17 10:06:03 +00:00
macallan 02d1fad157 use 64bit paddr_t and bus_addr_t so we can mmap DMA buffers uncached 2007-07-17 04:03:22 +00:00
macallan 57a324e6fa if we have 64bit paddr_t add a flag which indicates non-cachable for use
with mmap*() and pmap_enter()
Mainly for allowing userland to mmap() the O2's framebuffer uncached
2007-07-17 04:01:34 +00:00
macallan 8bad22882a add definitions for non-cached pages 2007-07-17 03:53:56 +00:00
dyoung 1f1797c9c0 Suppress spurious timeouts and avoid wedging in OACTIVE state:
1 Set or clear OACTIVE as transmit buffers are depleted or
        replenished, respectively.  Do not use 802.11 acknowledgements
        as a criteria for clearing OACTIVE.

        2 Let each transmit queue count down to timeout independently,
        and get rid of the shared countdown (sc_tx_timer).  When
        we add a packet to a transmit queue, restart the queue's
        countdown.  Stop a transmit queue's countdown when the
        queue empties.
2007-07-17 01:26:17 +00:00
macallan 5a3795a6c0 add options MACE_NEEDS_DELAYS since many machines need those delays in
bus_space*() operations on macs
2007-07-17 00:26:57 +00:00
macallan a1457f5905 change pmap_phys_address()s parameter to paddr_t since that's what it gets
fed from mmap*() anyway
approved by gimpy
2007-07-16 23:48:03 +00:00
dyoung 6553b2fabf Don't run ctags(1) on an ndis file and on a pf file whose symbols
covered useful NetBSD tag targets such as 'device_t'.
2007-07-16 22:47:55 +00:00
macallan 03d6f84d6b fix a typo - if we pass no parameters to OF_interpret we better don't say
we do...
2007-07-16 22:17:03 +00:00
joerg 2ccbc1ff9d Switch to src/dist as primary src location of pkg_install.
Adjust the Makefiles to be reachover Makefiles and remove
some unnecessary warning exceptions.

audit-packages.conf is stored redundantly in src/etc, not changed yet.
pkgsrc.7 is also kept in share/man/man7.

Add a comment in lib/nbcompat.h to make the file non-empty.
2007-07-16 19:57:46 +00:00
joerg f6afac53fa Switch to src/dist as primary src location of pkg_install.
Adjust the Makefiles to be reachover Makefiles and remove
some unnecessary warning exceptions.

audit-packages.conf is stored redundantly in src/etc, not changed yet.
pkgsrc.7 is also kept in share/man/man7.

Add a comment in lib/nbcompat.h to make the file non-empty.
2007-07-16 19:33:02 +00:00
joerg 39dccbf2f1 prop_array_internalize and prop_dictionary_internalize are basically the
same code. Refactor it into _prop_generic_internalize, which gets passed
the second-level tag.
2007-07-16 19:20:17 +00:00
joerg 306d03018d A regression test is much more useful, if it passes itself on correct
input.
2007-07-16 19:04:18 +00:00
christos b79c2ef26a no need to have cshbool; just make them int 2007-07-16 18:26:09 +00:00
xtraeme 22d9c7eda3 battery_gtredata: there's no need to set ENVSYS_SVALID on each case,
just set it after the switch.
2007-07-16 18:24:29 +00:00
xtraeme 6897610c87 Disable monitoring in the Integer sensors, they are just informative
and shouldn't need it anyway.
2007-07-16 17:57:41 +00:00
xtraeme 912541575c Disable monitoring in the ACPIBAT_TECHNOLOGY sensor, which is just
informative.
2007-07-16 17:54:46 +00:00
xtraeme 8a3fc18201 This one is shared for Indicators and Integers... update the comment. 2007-07-16 17:51:09 +00:00
xtraeme d99380c510 Explain that sensor_indicator will be used for indicators and integers. 2007-07-16 17:49:56 +00:00
xtraeme 2557124ac5 There's no reason why integer sensors were disabled for monitoring,
so enable it. This will allow to set a min/max limit for the
macppc/battery.c driver, which uses an integer sensor to report the
battery capacity.

Indicator/Integer sensors will share the /etc/power/scripts/sensor_indicator
script to report the events.
2007-07-16 17:48:52 +00:00
xtraeme 811e1e2e60 Fix a typo: it's ENVSYS_FPERCENT not ENVSYS_FPERCENTAGE.
Bump date.
2007-07-16 17:37:10 +00:00
pooka 63d872ecae Print MNT_GETARGS results in one line to make them display
properly with mount -vvvvvvvvvv
2007-07-16 17:12:03 +00:00
pooka 8f211a8a19 kernfs doesn't support getargs, so fail silently instead of making
a fuss about it.
2007-07-16 17:09:42 +00:00
pooka 704e075311 Make all mount(2) return value error checks against -1. Some file
systems just checked != 0, breaking MNT_GETARGS.  Others worked with < 0,
but make them check against -1 too for consistency.  And sprinkle some
stylish line wrapping where appropriate.
2007-07-16 17:06:52 +00:00
xtraeme 5415c24ed1 aiboost_refresh_sensors: if value returned is 0, invalidate the sensor too. 2007-07-16 16:44:26 +00:00
macallan c1d4259805 turn pmap_phys_address() into a macro since all the function ever did was
to cast its parameter to paddr_t and return it
approved by mrg
2007-07-16 16:36:06 +00:00
pooka 404c3d29ef 1|2 is more correct when it's 3 instead of 2. This makes calls to
the file server inactive less over-eagerly executed and masks some
problems with the new mounting style.  Effectively, it makes some
file systems such as psshfs mountable again (only without -o allops).
2007-07-16 16:11:23 +00:00
dyoung c342db9666 Use printf("%zx", arg) instead of printf("%lx", (unsigned long)arg).
Use __arraycount().
2007-07-16 15:55:38 +00:00