* How to exchange data between Kernel & User Space
@ 2001-09-26 3:51 Gangadhar Uppala
2001-09-26 4:41 ` Matti Aarnio
0 siblings, 1 reply; 4+ messages in thread
From: Gangadhar Uppala @ 2001-09-26 3:51 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 420 bytes --]
Hi All,
Here we are in need of a design decision . The problem is as follows:
We are writing device driver for network adapter, as part of this we need to
exchange some information between user and kernel(driver) and vice versa. As
i know this can be implemented using IOCTLs. Please suggest an alternative
approach for this.
Please keep a copy for me, because i am not subscriber to this list.
Thanks
Gangadhar
[-- Attachment #2: Wipro_Disclaimer.txt --]
[-- Type: text/plain, Size: 853 bytes --]
----------------------------------------------------------------------------------------------------------------------
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:mailadmin@wipro.com and delete this mail
from your records.
----------------------------------------------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to exchange data between Kernel & User Space
2001-09-26 3:51 How to exchange data between Kernel & User Space Gangadhar Uppala
@ 2001-09-26 4:41 ` Matti Aarnio
2001-09-26 6:11 ` Kirill Ratkin
0 siblings, 1 reply; 4+ messages in thread
From: Matti Aarnio @ 2001-09-26 4:41 UTC (permalink / raw)
To: Gangadhar Uppala; +Cc: linux-kernel
On Wed, Sep 26, 2001 at 09:21:25AM +0530, Gangadhar Uppala wrote:
> Hi All,
> Here we are in need of a design decision . The problem is as follows:
>
> We are writing device driver for network adapter, as part of this we need to
> exchange some information between user and kernel(driver) and vice versa. As
> i know this can be implemented using IOCTLs. Please suggest an alternative
> approach for this.
Why the system supplied standard set of ioctls isn't enough ?
Or is not extendible ?
Something very special you need to do ?
Is high bandwidth needed at this communication ?
For normal network traffic the communication goes via kernel internal
packet reception path, but if you want to do something totally different,
suggesting alternates needs an idea of what you are aiming at.
> Please keep a copy for me, because i am not subscriber to this list.
>
> Thanks
> Gangadhar
/Matti Aarnio
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to exchange data between Kernel & User Space
2001-09-26 4:41 ` Matti Aarnio
@ 2001-09-26 6:11 ` Kirill Ratkin
2001-09-26 7:05 ` Matti Aarnio
0 siblings, 1 reply; 4+ messages in thread
From: Kirill Ratkin @ 2001-09-26 6:11 UTC (permalink / raw)
To: Gangadhar Uppala; +Cc: linux-kernel
Use mmap and see exmaple here:
http://www.kernelnewbies.org/code/mmap/
Regards,
--- Matti Aarnio <matti.aarnio@zmailer.org> wrote:
> On Wed, Sep 26, 2001 at 09:21:25AM +0530, Gangadhar
> Uppala wrote:
> > Hi All,
> > Here we are in need of a design decision . The
> problem is as follows:
> >
> > We are writing device driver for network adapter,
> as part of this we need to
> > exchange some information between user and
> kernel(driver) and vice versa. As
> > i know this can be implemented using IOCTLs.
> Please suggest an alternative
> > approach for this.
>
> Why the system supplied standard set of ioctls
> isn't enough ?
> Or is not extendible ?
>
> Something very special you need to do ?
> Is high bandwidth needed at this communication ?
>
> For normal network traffic the communication goes
> via kernel internal
> packet reception path, but if you want to do
> something totally different,
> suggesting alternates needs an idea of what you
> are aiming at.
>
> > Please keep a copy for me, because i am not
> subscriber to this list.
> >
> > Thanks
> > Gangadhar
>
> /Matti Aarnio
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at
> http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to exchange data between Kernel & User Space
2001-09-26 6:11 ` Kirill Ratkin
@ 2001-09-26 7:05 ` Matti Aarnio
0 siblings, 0 replies; 4+ messages in thread
From: Matti Aarnio @ 2001-09-26 7:05 UTC (permalink / raw)
To: Kirill Ratkin; +Cc: Gangadhar Uppala, linux-kernel
On Tue, Sep 25, 2001 at 11:11:24PM -0700, Kirill Ratkin wrote:
> Use mmap and see exmaple here:
> http://www.kernelnewbies.org/code/mmap/
That is partial possibility, but the example is
incomplete, and dangerous in case the machine
has more than about 800 MB memory. (E.g. it has,
and uses, HIGHMEM facility.)
It is also completely wrong approach in case
the interface does not need to be high bandwidth
payload delivering directly into user space,
but e.g. control some aspects of hardware.
("network interface" sounds, to me, very much
of NETDEV class device at which MMAP tricks
in general are wrong.)
The person asking for pointers didn't give
enough details for good advice. Supplying
the many ropes which Linux has for hanging
oneself is not a good advice.
> Regards,
/Matti Aarnio
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-09-26 7:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-26 3:51 How to exchange data between Kernel & User Space Gangadhar Uppala
2001-09-26 4:41 ` Matti Aarnio
2001-09-26 6:11 ` Kirill Ratkin
2001-09-26 7:05 ` Matti Aarnio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®