[clug] modifying serial.c

Martin Pool mbp at samba.org
Tue Feb 24 00:03:32 GMT 2004


On 22 Feb 2004, "caloykoy_one at pacific.net.ph" <caloykoy_one at pacific.net.ph> wrote:

> a good day to all of you. i'm a student of the university of the
> philippines currently doing research on the Mitsubishi RV-M1 robot
> arm. i saw this group and i'm hoping you guys could help me out.
>   
> as part of my thesis i would have to write a device driver for the
> robot arm. what it should do is any text file (containing commands
> for example) sent to that device driver should be automatically
> directed to the robot arm. conventionally what we do is we write a C
> program that accesses the default serial driver, then we set the
> appropriate baud rate, parity and stop bits for the robot arm. all
> the commands we want to send to the robot arm will be included in
> that C program also. so there, as said, one aim of my thesis is to
> do away with that C program and just write a device driver
> specifically for the robot arm that will take care of any command
> for the arm sent to it.
>  
> i understand that somehow i just have to modify serial.c for this
> however unfortunately i don't know where to start. i'm really new at
> linux and programming so even if i feel that my task is relatively
> easy compared to others probably, i'm still in the dark as to what
> to do.

From your description there is no good reason for this to be in the
kernel.  Just use a userspace C program as you do at the moment.
Putting it in the kernel will make it far harder to write, modify and
debug.  Why would you want to do that?

-- 
Martin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/linux/attachments/20040224/dba5ddfe/attachment.bin


More information about the linux mailing list