summaryrefslogtreecommitdiff
path: root/sys/dev/ir
AgeCommit message (Collapse)Author
2021-09-26Change the kqueue filterops::f_isfd field to filterops::f_flags, andthorpej
define a flag FILTEROP_ISFD that has the meaning of the prior f_isfd. Field and flag name aligned with OpenBSD. This does not constitute a functional or ABI change, as the field location and size, and the value placed in that field, are the same as the previous code, but we're bumping __NetBSD_Version__ so 3rd-party module source code can adapt, as needed. NetBSD 9.99.89
2020-12-19Use sel{record,remove}_knote().thorpej
2019-01-24Add comments about D_MPSAFE to functions called as struct linesw.l_ioctl.knakahara
2017-10-25Use C99 initializer for filteropsmaya
Mostly done with spatch with touchups for indentation @@ expression a; identifier b,c,d; identifier p; @@ const struct filterops p = - { a, b, c, d + { + .f_isfd = a, + .f_attach = b, + .f_detach = c, + .f_event = d, };
2016-07-14- Use aprint*() more in xxx_attach().msaitoh
- Add missing aprint_naive("\n"). - Remove extra spaces and tabs. - KNF.
2015-09-06More on PR 41200: headers that declare ioctls should include sys/ioccom.h.dholland
This covers (I think) all the MI headers outside of external/ (and dist/).
2015-08-20include "ioconf.h" to get the 'void <driver>attach(int count);' prototype.christos
2014-11-16Replace callout_stop with callout_haltozaki-r
In order to call callout_destroy for a callout safely, we have to ensure the function of the callout is not running and pending. To do so, we should use callout_halt, not callout_stop. Discussed with martin@ and riastradh@.
2014-07-25Add d_discard to all struct cdevsw instances I could find.dholland
All have been set to "nodiscard"; some should get a real implementation.
2014-03-16Change (mostly mechanically) every cdevsw/bdevsw I can find to usedholland
designated initializers. I have not built every extant kernel so I have probably broken at least one build; however I've also found and fixed some wrong cdevsw/bdevsw entries so even if so I think we come out ahead.
2013-12-16apply __diagused where appropriate.mrg
2013-05-27Split IrDA SIR part for other SIR device.kiyohara
2011-07-26convert to device_t, cfdata_t and CFATTACH_DECL_NEW.mrg
2010-12-29module needs to devsw_attach/devsw_detachjmcneill
2010-12-28add "ir" and "cir" modulesjmcneill
2009-12-06Delete unnecessary device-activation hooks.dyoung
2009-05-12struct device * -> device_t, no functional changes intended.cegger
2009-05-12struct cfdata * -> cfdata_t, no functional changes intended.cegger
2009-01-11Avoid crash under LOCKDEBUG by destroying a mutex correctly.mlelstv
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-11Register with pmf.mlelstv
2009-01-11merge christos-time_tchristos
2008-10-10Make cirpoll work.jmcneill
2008-10-10cirkqfilter is not implemented, so remove any references to it so thisjmcneill
file will compile again
2008-06-11use device_lookup_private to get softccegger
2008-06-10device_private(device_lookup()) -> device_lookup_private()cegger
ok cube@
2008-05-25Properly fix the "hanging in tty" bug that was worked around with cv_wakeup()ad
some time again.
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2008-04-08use aprint_*_dev and device_xnamecegger
2008-03-14Split device_t and softc for irframe(4).cube
2008-03-01Welcome to 4.99.55:rmind
- 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>
2007-12-15__FUNCTION__ -> __func__perry
2007-12-05Do not "return 1" from kqfilter for errors. That value is passedpooka
directly to the userland caller and results in a mysterious EPERM. Instead, return EINVAL or something else sensible depending on the case.
2007-12-05lockmgr -> mutexad
2007-11-19- Factor out too many copies of the same bit of tty code.ad
- Fix another tty signalling/wakeup problem.
2007-11-10Call ttyflush() with tty_lock held.ad
2007-11-07Merge tty changes from the vmlocking branch.ad
2007-07-09Merge some of the less invasive changes from the vmlocking branch:ad
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
2007-03-08In the pseudo-dev attach function, also try to register the struct cfdriverdrochner
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-06clean up and fix irframe attachment as a line discipline:drochner
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-06irframe is no interface attribute, so remove the "{}"drochner
2007-03-05replace the code which digs in the guts of autoconf. It is not obviousdrochner
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-04Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.christos
2007-01-10Complete initialiser, avoid returning stack content as an error code and...cube
Oh, yeah, we use struct lwp pretty much everywhere in place of struct proc since... Well, long.
2007-01-09Comment out a trigraph in a #ifdef 0'd block. Kinda pointless, but allowscube
it to pass make depend.
2006-11-16__unused removal on arguments; approved by core.christos
2006-10-12- sprinkle __unused on function decls.christos
- fix a couple of unused bugs - no more -Wno-unused for i386
2006-10-07Fix compilation with IRFRAMET_DEBUG (use %zu/%zd for sizes).peter
2006-10-01Adapt MD code to KAUTH_DEVICE_TTY_OPEN, batch #2 from Matt Fleming, thanks!elad
Also, add forgotten splx() calls in some places.
2006-08-30fix incomplete initializer.christos
2006-07-21- Use the LWP cached credentials where sane.ad
- Minor cosmetic changes.