lkml.org 
[lkml]   [1999]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Device to device data transfer woes
Date
From
>I am writing a char driver that needs to access the audio system
>directly. This is no problem, except that the file operations of the audio
>driver expect data to be in user space.

Use set_fs(get_ds()) to allow the user memory access functions to get at
kernel memory too. You need to save the old value beforehand and restore it
afterwards.

p.



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:49    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog