![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| single user mode - user accounts passwords | orestis | UNIX for Dummies Questions & Answers | 3 | 02-02-2009 05:18 PM |
| Kernel Mode | palash2k | UNIX for Dummies Questions & Answers | 2 | 04-23-2008 07:53 AM |
| How to restrict a user group to access the kernel | harishankar | HP-UX | 0 | 08-09-2007 03:09 AM |
| unexpected trap in kernel mode | kayode | SCO | 1 | 07-07-2004 11:06 AM |
| k_trap - kernel mode trap type 0x0000000E | alex_slb | Filesystems, Disks and Memory | 3 | 09-22-2002 07:04 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Aplication user and kernel mode (data access)
Hi all,
I am trying to setup a program to use a device driver and am confusing buffer access between User and Kernel mode. I think all applications running in User space have to communicate with the device drivers using io control calls and then have some functions called back from the driver app. In this model, I guess the User app passes buffer pointer values to the driver using the ioctl calls. Is that what happens? For example, I have a session context struct created by the user app using malloc. Would that data have to be copied to the driver for it to be used, or could I just pass a pointer to the struct? Is using ioctl calls the only way to 'switch to kernel mode'?? Also, am I right in saying the process running on the device driver is separate from the one running in the application? how does that work in relation to a threaded application? must a new thread be created with each function call back? You can probably tell I am very confused here, so any help is greatly apreciated! Regards, Brendan |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|