[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <17cd85320910191428p4ca8bc9lc865babb18f29b1d@mail.gmail.com>
Date: Mon, 19 Oct 2009 16:28:42 -0500
From: Chris Ross <chris@...pilednetworks.com>
To: netdev <netdev@...r.kernel.org>
Subject: user-to-kernel shared memory with net_device
I have a net_device driver that has a fairly large (1-2MB) set of
stats that a user space process needs to read from time to time. I had
assumed the optimal ipc mechanism would be shared memory. Now that I'm
getting around to implementation of this side of the project I'm
getting a bit stuck.
All of the mmap examples I can find seem to be for character devices.
Do I need a character device that implements mmap and proxies access
to the net_device's stats, or is there a way to mmap directly to a
net_device structure? Also, is this the excepted method when a
userspace process needs to read large tables from a driver?
thanks,
-chris
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists