Commit Graph

155564 Commits

Author SHA1 Message Date
pooka
2fbe1b2261 document request handling routines 2007-01-20 15:09:34 +00:00
gdt
4a62427865 KNF/whitespace in code I recently added; no real changes. 2007-01-20 14:46:21 +00:00
pooka
984c93b472 more ketchup 2007-01-20 14:37:48 +00:00
pooka
288823a738 Be consistent with the rest of the framework about the argument
order of puffs_docc and puffs_dopreq
2007-01-20 14:37:06 +00:00
pooka
9fcf633272 play catchup with the lib 2007-01-20 13:52:35 +00:00
pooka
84e83df1bb be consistent in naming request handlers 2007-01-20 13:52:14 +00:00
pooka
937097aa47 document puffs_getstate() and puffs_setstacksize() 2007-01-20 13:34:35 +00:00
wiz
b81f412f64 Sort ERRORS section. 2007-01-20 13:26:59 +00:00
isaki
d4ba865188 Make it compile without SUPPORT_UTMP nor SUPPORT_UTMPX. 2007-01-20 13:25:28 +00:00
wiz
0a4737c5de Drop trailing whitespace. 2007-01-20 13:24:44 +00:00
wiz
2b5809387d Sort SEE ALSO. 2007-01-20 13:23:59 +00:00
wiz
9e27ce3c1f Sort sections. 2007-01-20 13:11:36 +00:00
skrll
fb3b023826 Correct a comment. 2007-01-20 10:54:44 +00:00
isaki
18d9998d72 Add AMD Geode LX.
OK'ed by tsutsui@ on port-i386.
2007-01-20 10:28:49 +00:00
christos
1636e22df7 set warns to 4 2007-01-20 04:56:25 +00:00
christos
3ca3d0b1e7 add a missing volatile. 2007-01-20 04:56:07 +00:00
ad
24d35c8592 Manual pages for new LWP system calls. Not enabled in the Makefile. 2007-01-20 01:41:00 +00:00
perry
981d0d04cb Fix a typo in a boolean test, which used & instead of &&. 2007-01-20 01:13:13 +00:00
drochner
60e1a2a1cb Kill the "bus powered" bit in the configuration descriptor. This doesn't
exist in newer spec revisions, and is recommended to be set to 1.
So call it _MBO and also use it in the fake root hub descriptors, just
for sanity, even if nothing ever looks at it.
2007-01-19 22:46:21 +00:00
drochner
a813a29041 In usbd_set_config_index(), remove the code which tries to draw conclusions
from the attempted power state instead of the real one. The configuration
descriptor is a constant thing and doesn't reflect the actual state, so
this doesn't make any sense. The actual state can be read by a device
status read, so use this as the first and only instance and remove
the device specific quirks which were based on wrong assumptions.
(It is possible that one of the 3 devices with quirk entries still
needs some special treatment, but this would need better research. For
now I'd prefer to avoid a quirk database which isn't maintained anyway.)
Btw, don't be confused by messages about self powered hubs which don't
have external power connected. This is legal, see the specs.
2007-01-19 22:42:05 +00:00
pooka
14c2cf6c8d add new puffs manual pages 2007-01-19 21:13:31 +00:00
pooka
809ae5f803 Bring the documentation slightly more into sync with the current
reality.  It's still really a far cry from proper documentation,
though.
2007-01-19 21:10:55 +00:00
macallan
cf6c447564 add #defines for ADB and pseudo mice 2007-01-19 20:59:45 +00:00
christos
226df6aaef only change atime on access. 2007-01-19 20:10:36 +00:00
pooka
533e5fb937 I don't spell "puffs" with allcaps (except in macro names, har har),
so uncapsize it from here also
2007-01-19 20:04:39 +00:00
cbiere
810b552f37 cgd_ioctl_set():
* Corrected type of keybytes to size_t to prevent a potential buffer
    overflow on 64-bit archs.
  * Fixed incorrect but harmless use of sizeof.
hexprint():
  * Corrected cast to prevent sign extension if char is signed.
2007-01-19 18:59:59 +00:00
pooka
7f8363fa95 hannken noted that the latest gcc (?) complains about uninitialized
variable use in puffs_strategy() for "dowritefaf" (incorrectly)
and "error" (correctly, although the function is practically of
type void)
2007-01-19 17:52:01 +00:00
hubertf
326d0a938c Add a few entries contributed by Alexey Eremenko <al4321@gmail.com>,
and add CARP (by me)
2007-01-19 16:16:36 +00:00
skrll
4b3e98dc1b Remove useless double assignment.
PR 35442
2007-01-19 15:52:24 +00:00
pooka
b2a7b240df In case the fs server is in the kernel doing an operation on a
completely different file system, we still might re-enter the same
puffs fs in case we execute something on the other file system,
which wants to get a new vnode and ends up recycling a puffs vnode
for the purpose.  In this case the fs server will sleep in the
kernel until it itself handles the operation .... which of course
is a slightly unlikely event.

After analyzing the path from getcleanvnode() to the vnode cemetary,
identify that fsync and putpages (strategy) are the ones in danger
of striking a deadlock deal.  Abuse the vnode flag VXLOCK to tell
them "this vnode is irreversably going to meet its maker, don't
care about user server return values" (failure is not acceptable
down the vgonel() path) and issue the respective operations as
Fire-And-Forget (FAF) operations.  no wait -> no deadlock.

This of course is a "fix" skating on thin ice.  A better, more
generic solution is already in sight, but will take more effort to
implement.
2007-01-19 14:59:50 +00:00
hannken
1b9c6382e3 New file system suspension API to replace vn_start_write and vn_finished_write.
The suspension helpers are now put into file system specific operations.
This means every file system not supporting these helpers cannot be suspended
and therefore snapshots are no longer possible.

Implemented for file systems of type ffs.

The new API is enabled on a kernel option NEWVNGATE.  This option is
not enabled by default in any kernel config.

Presented and discussed on tech-kern with much input from
Bill Studenmund <wrstuden@netbsd.org> and YAMAMOTO Takashi <yamt@netbsd.org>.

Welcome to 4.99.9 (new vfs op vfs_suspendctl).
2007-01-19 14:49:08 +00:00
pooka
2a1cb9e956 debug print requests going into the queue 2007-01-19 13:01:15 +00:00
bouyer
26989657fb For the unaligned case:
Be consistant with the spaces around * and +
	Use data32io[th] for 32bit access
	Use stream bus_space access unless we have DRIVE_NOSTREAM
all pointed out by enami tsugutomo, thanks !
2007-01-18 21:42:57 +00:00
dsl
bbdea71364 Don't delete '\' from before '#' in shell command lines.
Probably fixes build of pkgsrc:editors/xemacs.
Pointed out by Richard Earnshaw.
2007-01-18 20:22:44 +00:00
skrll
ba85386518 Apply an iffy heuristic to detect a valid switchframe on the stack and
extract the register state from this for the live kernel case. If there
is no switchframe then use the frame pointer to get enough state for crash
dump case.

More information needs to be saved by savectx to avoid this mess.

Should fix PR/35118
2007-01-18 18:15:02 +00:00
ginsbach
089d34fd42 Add a small regression test for getopt_long(3). 2007-01-18 16:29:21 +00:00
drochner
11f2202b96 -fix use of arguments and remove an outdated section
-Xr mkfifo(2)
(btw, SUSv3 says that the only portable use of mknod() is to create
a FIFO. This is not supported by NetBSD.)
2007-01-18 14:07:01 +00:00
cbiere
b64481fed4 * Fixed use of fgetc() in getch().
* Check for non-ASCII characters in getch() because the rest of the code
   doesn't expect such.
 * Removed use of -traditional and constructs which relied on this.
 * Use raise(SIGFPE) in dump() instead of attempting a division-by-zero.
 * Fixed compiler warnings regarding missing prototypes or unused
   parameters.
2007-01-18 12:43:38 +00:00
cbiere
75289275f1 isascii() and toascii() are defined for all integers unlike the other
functions. Explicitely mention "undefined behavior".
2007-01-18 11:33:13 +00:00
kiyohara
672e3eab7c Sorry...
btuart not yet.
2007-01-18 10:24:53 +00:00
kiyohara
a9dae91c04 Support com*.
Add options GXIO_BLUETOOTH_ON_HWUART, but not yet btuart.
Cleanup some configurations.
2007-01-18 10:15:20 +00:00
kiyohara
a847a1afbe Initialize GPIO of *UARTs and supports. 2007-01-18 10:06:47 +00:00
kiyohara
7dbdf0112d Use device_private() and aprint_*. 2007-01-18 10:02:55 +00:00
rillig
4d81a78185 Added a reference to ctype.3. What's the value of having that page at
all if it isn't referenced by others?

Suggested by Slava Semushin via private mail.
2007-01-18 08:35:07 +00:00
rillig
8b4906df56 Added a warning about a wrong usage, which is nevertheless often found
in real code, and an example code that does it correctly.
2007-01-18 08:33:34 +00:00
macallan
6a0b5a67e6 add commented out definitions for new ADB subsystem and G3 audio 2007-01-18 00:58:55 +00:00
macallan
ab42288391 avoid another collision 2007-01-18 00:49:17 +00:00
macallan
38b072ded2 make some tables static to avoid collisions 2007-01-18 00:43:00 +00:00
macallan
15a3f9b614 fix accidential commit, this time really only add the bus_space_tag 2007-01-18 00:19:30 +00:00
macallan
c11af36bf1 pass a bus_space_tag to children 2007-01-18 00:17:22 +00:00