Date: Mon, 19 Sep 2005 23:40:26 +0100 From: "Phil Richardson" <prichardson@lincoln.ac.uk> To: <freebsd-drivers@freebsd.org> Subject: Newbie Device Driver writer... Message-ID: <139F6E4BC4C585478FA84D02D90CC1CA04C5102C@aexcmb02.network.uni>
next in thread | raw e-mail | index | archive | help
Hi. Im rather new to device driver writing under FreeBSD (in particular Im = using 5.4). I have a PCI based IO card (4x32bit TTL presentation) and = have written a simplistic driver thus far (basic handling is done = completely through IOCTL calls - but it works). However now I have started to think about using the device in a real way = I realise it would be nice to implement asynchronous use. Maybe not the = right term (forgive me) - but in essence I would really like to utilise = this device along with other devices (such as a socket or tty) and use = the Select() call to determine whats happening to who, and when. However - I cannot find any reference anywhere within source code (that = I can recognise at any rate) within existing device drivers (say sio.c) = that suggest how you link a device driver to the select() call itself (I = was expecting to find something like sio_select, much as sio_read, = sio_write and sio_ioctl for example - which shows my inexperience and = definate lack of understanding). Anyone care to give some advice on how the kernel select() call can be = linked into a home-made driver? A pointer to some documentation (dare I = say that - documentation is a bit thin on device drivers so ive = found...) would be a help. Trusting someone somewhere might have a pointer or clue out there..... Regards Phil
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?139F6E4BC4C585478FA84D02D90CC1CA04C5102C>