[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re:[Ltib] Driver question
From: |
hong zhang |
Subject: |
Re:[Ltib] Driver question |
Date: |
Wed, 28 Nov 2007 15:06:51 -0800 (PST) |
Mehrdad,
opening, reading and writing files from within the
kernel is usually a bad idea. Generally speaking,
trying to use any of the sys_*() functions from the
kernel itself is a bad idea.
----henry
--- address@hidden wrote:
> Send Ltib mailing list submissions to
> address@hidden
>
> To subscribe or unsubscribe via the World Wide Web,
> visit
> http://lists.nongnu.org/mailman/listinfo/ltib
> or, via email, send a message with subject or body
> 'help' to
> address@hidden
>
> You can reach the person managing the list at
> address@hidden
>
> When replying, please edit your Subject line so it
> is more specific
> than "Re: Contents of Ltib digest..."
>
>
> Today's Topics:
>
> 1. Driver question (Mehrdad Salami)
>
>
>
----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 23 Nov 2007 11:11:30 +1100
> From: Mehrdad Salami <address@hidden>
> Subject: [Ltib] Driver question
> To: address@hidden
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=ISO-8859-1;
> format=flowed
>
> Hi List,
>
> I am trying to open a serial driver from kernel
> space of another driver.
> Currently I am opening the serial driver from user
> space
>
> fd=open(/dev/tts/2,...
> read(fd,...
> close(fd);
>
> However I want to open this serial driver in another
> driver in kernel
> space which I am developing myself. I wonder if such
> thing is possible
> considering the security and resources for kernel
> space drivers.
>
> If this is possible what function need to be called
> to open this serial
> driver in kernel space.
>
>
> Thanks,
>
> Mehrdad
>
>
>
>
> ------------------------------
>
> _______________________________________________
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib
>
>
> End of Ltib Digest, Vol 19, Issue 12
> ************************************
>
____________________________________________________________________________________
Get easy, one-click access to your favorites.
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs