On 12 August 2005 16:01, James wrote:
> Frank Schafer <frank.schafer <at> t-systems.cz> writes:
> > Gooooooooooogle "Advanced Bash-Scripting Guide" >>>
> > <www.tldp.org/LDP/abs/html/>
>
> Well this is an excellent resource, BUT it seems
> devoid of any examples where a custom device driver,
> say for the serial port on a linux system,
> inserted as a module or is part of the kernel,
> and the associate software that allows users
> to access some of the hardware(features) and not
> other hardware/firmware/kernel features(code), unless
> they are root, or have a special (encrypted)key
> or another form of chicanery (biometric generated
> key).

True but then, what you are asking for has precious little to do with bash 
scripting. I was actually wondering what you need when reading your original 
code.

If you want to hack kernel drivers you need to familiarise yourself with the 
kernel and the generic driver interface. Don't know whether the documentation 
in the kernel is enough for that.

On the other hand, I don't think you really need a kernel driver. If your goal 
is to drive some gadget attached to a serial port, you can do all that in a 
userspace application. I once wrote the complete interface between a database 
and an array of automatic medical analysers attached to a serial line in 
userspace. Alright, that was on HPUX but it did compile and work under linux 
as well.

Although a bit outdated, Richard Stevens's "Advanced Programming in the UNIX 
Environment" is still a very valuable resource to get started. 

Uwe

-- 
95% of all programmers rate themselves among the top 5% of all software 
developers. - Linus Torvalds

http://www.uwix.iway.na (last updated: 20.06.2004)
-- 
[email protected] mailing list

Reply via email to