Commit Graph

113 Commits

Author SHA1 Message Date
mrg 9af887f060 convert to device_t, cfdata_t and CFATTACH_DECL_NEW. 2011-07-26 08:56:26 +00:00
jmcneill 2ea5b50e4b module needs to devsw_attach/devsw_detach 2010-12-29 13:43:16 +00:00
jmcneill b678bc7497 add "ir" and "cir" modules 2010-12-28 14:45:30 +00:00
dyoung de0ad50405 Delete unnecessary device-activation hooks. 2009-12-06 22:40:56 +00:00
cegger 99747a8099 struct device * -> device_t, no functional changes intended. 2009-05-12 14:28:22 +00:00
cegger 32c4940900 struct cfdata * -> cfdata_t, no functional changes intended. 2009-05-12 12:10:29 +00:00
mlelstv 8de4cc7236 Avoid crash under LOCKDEBUG by destroying a mutex correctly.
Also: move mutex init/destroy into attach/detach functions and
handle case where line discipline is closed before the irframe
device. Fixes PR kern/40271.
2009-01-11 14:28:13 +00:00
mlelstv 1c2f2889cc Register with pmf. 2009-01-11 14:21:48 +00:00
christos 461a86f9bd merge christos-time_t 2009-01-11 02:45:45 +00:00
jmcneill c223922bd6 Make cirpoll work. 2008-10-10 21:50:09 +00:00
jmcneill 73e5218b04 cirkqfilter is not implemented, so remove any references to it so this
file will compile again
2008-10-10 21:07:52 +00:00
cegger 5819fc04b4 use device_lookup_private to get softc 2008-06-11 20:52:14 +00:00
cegger fc8fd752ef device_private(device_lookup()) -> device_lookup_private()
ok cube@
2008-06-10 22:53:08 +00:00
ad 5e4b324300 Properly fix the "hanging in tty" bug that was worked around with cv_wakeup()
some time again.
2008-05-25 19:22:21 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
cegger 1ef783cb7b use aprint_*_dev and device_xname 2008-04-08 20:40:42 +00:00
cube a6b5eb2b1d Split device_t and softc for irframe(4). 2008-03-14 21:06:04 +00:00
rmind c6186face4 Welcome to 4.99.55:
- Add a lot of missing selinit() and seldestroy() calls.

- Merge selwakeup() and selnotify() calls into a single selnotify().

- Add an additional 'events' argument to selnotify() call.  It will
  indicate which event (POLL_IN, POLL_OUT, etc) happen.  If unknown,
  zero may be used.

Note: please pass appropriate value of 'events' where possible.
Proposed on: <tech-kern>
2008-03-01 14:16:49 +00:00
perry 9b2b412c19 __FUNCTION__ -> __func__ 2007-12-15 00:39:14 +00:00
pooka 4e38160d4d Do not "return 1" from kqfilter for errors. That value is passed
directly to the userland caller and results in a mysterious EPERM.
Instead, return EINVAL or something else sensible depending on the
case.
2007-12-05 17:19:46 +00:00
ad 6874e511b7 lockmgr -> mutex 2007-12-05 07:58:29 +00:00
ad dc26833bb6 - Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.
2007-11-19 18:51:36 +00:00
ad 0f8b0df960 Call ttyflush() with tty_lock held. 2007-11-10 18:29:36 +00:00
ad d37935697b Merge tty changes from the vmlocking branch. 2007-11-07 15:56:11 +00:00
ad 88ab7da936 Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
drochner af336998bf In the pseudo-dev attach function, also try to register the struct cfdriver
of the backend irframe device with autoconf. This might fail or not,
depending on whether another frontend was configured. It helps if
irframetty is the only frontend.
This is a workaround for some inconsistencies in the interaction of
pseudo-devices with the autoconf framework. A fix will require changes
to config(8) which needs more consideration and testing.
Should fix a crash reported by Dieter Baron per PM.
2007-03-08 19:35:44 +00:00
drochner e612542ff1 clean up and fix irframe attachment as a line discipline:
make it a regular "bus frontend" in terms of configuration attachment
(this is something new: a device which can be real or pseudo device),
and use only autoconf functions considered exported.
This suffers a bit from the fact that pseudo-devices don't get "aux"
context data passed to the xxx_attach() function. This can be changed
easily; the differences between real and pseudo devices are diminishing...
2007-03-06 20:45:59 +00:00
drochner 603c9278cd irframe is no interface attribute, so remove the "{}" 2007-03-06 20:34:36 +00:00
drochner d152127c07 replace the code which digs in the guts of autoconf. It is not obvious
what it does; use some code from btuart(4) which might be for a
similar purpose.
XXX This is very definitely broken; when I understand how this is
supposed to work and how it can be tested I'll have another look at it.
2007-03-05 20:23:14 +00:00
christos 53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
cube a4888f871a Complete initialiser, avoid returning stack content as an error code and...
Oh, yeah, we use struct lwp pretty much everywhere in place of struct proc
since...  Well, long.
2007-01-10 20:49:18 +00:00
cube 8e20fbc980 Comment out a trigraph in a #ifdef 0'd block. Kinda pointless, but allows
it to pass make depend.
2007-01-09 15:35:53 +00:00
christos 168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
christos 4d595fd7b1 - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
peter 75809b1d7f Fix compilation with IRFRAMET_DEBUG (use %zu/%zd for sizes). 2006-10-07 14:31:53 +00:00
elad bdc51baebb Adapt MD code to KAUTH_DEVICE_TTY_OPEN, batch #2 from Matt Fleming, thanks!
Also, add forgotten splx() calls in some places.
2006-10-01 19:28:43 +00:00
christos a2b752877c fix incomplete initializer. 2006-08-30 19:16:03 +00:00
ad 3029ac48c7 - Use the LWP cached credentials where sane.
- Minor cosmetic changes.
2006-07-21 16:48:45 +00:00
christos f6ad6a2699 stack police: Fix the biggest offender with ~4K stack, by allocating the
buffer in the softc.
2006-06-09 21:58:57 +00:00
elad 2867b68bc3 integrate kauth. 2006-05-14 21:42:26 +00:00
thorpej 8fc3572573 Use device_private(). 2006-03-29 06:41:24 +00:00
thorpej 39cd836ee1 Use device_unit(). 2006-03-28 17:38:24 +00:00
christos 1b2709754a cleanup more SET/CLR/ISSET lossage 2006-03-05 17:33:33 +00:00
thorpej 1cdae6d6e2 Use device_is_active(). 2006-02-21 04:31:33 +00:00
thorpej 3ddf26777f Use device_is_active() rather than testing dv_flags for DVF_ACTIVE
directly.
2006-02-20 16:50:36 +00:00
perry fbae48b901 Change "inline" back to "__inline" in .h files -- C99 is still too
new, and some apps compile things in C89 mode. C89 keywords stay.

As per core@.
2006-02-16 20:17:12 +00:00
augustss f1d35de4d5 Use correct return values when polling. 2006-01-29 11:35:11 +00:00
chs 0545b6e0cb changes for making DIAGNOSTIC not change the kernel ABI:
- for structure fields that are conditionally present,
   make those fields always present.
 - for functions which are conditionally inline, make them never inline.
 - remove some other functions which are conditionally defined but
   don't actually do anything anymore.
 - make a lock-debugging function conditional on only LOCKDEBUG.

as discussed on tech-kern some time back.
2005-12-27 04:06:45 +00:00
perry 93124077ae Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:27:29 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00