lkml.org 
[lkml]   [2007]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: How can I create or read/write a file in linux device driver?

On Jan 12 2007 11:54, Jesper Juhl wrote:
>>
>> The article does it the bad way. IMHO filp_open() and
>> vfs_read/vfs_write() are much less problematic wrt. to userspace.
>> FWIW see
>> ftp://ftp-1.gwdg.de/pub/linux/misc/suser-jengelh/kernel/quad_dsp-1.5.1.tar.bz2
>
> There is no good way. You simply should NOT do it.

I never said there is a good way, just that some are better than others ;-)
As for quad_dsp, well, the reason why it's done in kernel-space is because
userspace wrapping with LD_PRELOAD does not always work, esp. with statically
compiled apps.


-`J'
--
-
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/

\
 
 \ /
  Last update: 2007-01-12 12:49    [W:0.034 / U:1.912 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site