lkml.org 
[lkml]   [1999]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: Anyway to mknod from kernel?





Bret Indrelee <bindrelee@sbs-cp.com> on 10/26/99 09:20:15 AM

To: "Linux Kernel Mailing List (E-mail)" <linux-kernel@vger.rutgers.edu>
cc: (bcc: Sergey Tsybanov/San Jose/Memco Software)

Subject: Anyway to mknod from kernel?





Yes where is.

Switch data argument segment from user space to kernel space and
just call

sys_call_table[ SYS_unlink] ( "/dev/MY_DRIVER_NAME")
and
sys_call_table[ SYS_mknod] ( ....blah...blah....blah... )\

I could send you exacly code for 2.2.3 if you want.

Sergey Tsybanov

Original message:

Is there any way for the kernel module to do the 'mknod' commands from
within the module? I would rather have the code create the inode rather than
needing a separate script that creates each of the minor device numbers.

Has anyone done this in one of their device drivers?

-Bret

-------------------------------------------------------------
SBS Technologies, Connectivity Products
... solutions for real-time connectivity

Bret Indrelee, Engineer
SBS Technologies, Inc., Connectivity Products
1284 Corporate Center Drive, St. Paul MN 55121
Direct: (651) 905-4731
Main: (651) 905-4700 Fax: (651) 905-4701
E-mail: bindrelee@sbs-cp.com http://www.sbs.com
-------------------------------------------------------------

-
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/





-
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:54    [W:0.019 / U:0.780 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site