Re: Newbie questions



On Thu, 29 Mar 2007 17:22:14 GMT, kamputty@xxxxxxxxxxxxx wrote:

BTW, 2.6 kernel

~Kam (^8*

Hi all,

I've been asked to modify 2 character device drivers, and I've come
across some issues

#1. Currently, the major and minor numbers are hardcoded. They state:
"Major numbers should be assigned dynamically". Is there a call to do
this? Both drivers should have the same MAJOR number, but different
MINOR numbers.

#2. Within my "write" function, it is currently writing the data, but
if there is an issue (latency etc), the write function waits until the
block is clear. I need to change this so that the write function does
not block, but does a queuing type of process...being a newbie at
this, is there a way to have a process that run within the driver that
just handles requests (write in this case) as a
daemon/thread/interrupt etc?

In other words, I need to change the write function to "issue" the
command, and let another(?) function do the actual writing, so the
caller of the driver does not get blocked etc...

any any any any any advice, suggestions would be super greatly
appriciated!

Thanks!

~Kam (^8*

.



Relevant Pages

  • i2c/ smbus question
    ... I2C_SMBUS_BLOCK_DATA properly (didn't send the lenght byte) and some ... drivers (our sound drivers) rely on that behaviour (that's fine, ... I'm a bit surprised that there seem to be no wrapper for writing with ...
    (Linux-Kernel)
  • Re: WERNER
    ... Getting some promise from a recruiter in writing isn;t going to do you much ... It's like getting your girfriend to promise sex 5 times per week ... can speak to enough current drivers to find out how they are being treated. ...
    (misc.transport.trucking)
  • Re: Ping A Teamster
    ... as most of the older drivers, save one or two, and seen the writing on ... After writing all that.....I did find this on the Teamster web ... a Union calling to change a ...
    (misc.transport.trucking)
  • Device for building USB host drivers
    ... I have tons of queries on writing a USB Flash drivers on Windows CE 5.0 ... for my school project. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Stream I/O driver XXX_Close race condition?
    ... It's about writing robust ... drivers and understanding vulnerabilities in the system. ... Using CloseHandle to force WaitCommEvent to exit is a typical case. ...
    (microsoft.public.windowsce.platbuilder)