03-17-2011
Quote:
Originally Posted by
Chrisdot
- it is impossible to load dll library / any other library from hdd/device's flash to RAM memory and take advantage of its functions by device driver (which I used to call just 'module'), isn't it?
If by that you mean "directly run userspace code in kernel space", then yes, it's impossible. Otherwise... it really, really depends what the content of this thing is. You can't run just anything in kernel space, it has to be code compiled for your kernel's environment. It also really, really depends on how it's stored and where. The kernel's capable of reading firmware
files on demand, I think, but from the sounds of it that's no file...
Quote:
- way to do that is e.g. mount (somehow) that dll / any other library as a device and use it in a way of reading / writing to that
If this dll is userspace code that won't help because it will still be userspace code and unable to operate in kernel space.
Quote:
Are there any other possibilities to solve that problem?
Extract the userspace code in userspace. Use the userspace code in userspace. Communicate
data, not program instructions, in and out of the kernel.
Last edited by Corona688; 03-17-2011 at 03:16 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I just set up an ftp server with Red Hat 5.2. I am doing the work, I'm baby stepping, but it seems like every step I get stuck. Currently, I'm trying to set up a crontab job, but I'm getting the following message: /bin/sh: /usr/bin/vi: No such file or directory. I see that vi exists in /bin/vi,... (3 Replies)
Discussion started by: kwalter
3 Replies
2. Programming
Hi-
I need the cpp call that will tell me the full path to the app I'm running in. For example, I'm running in a loaded library for either mozilla or firefox, but would like to know the full path to the executable
/usr/bin/firefox
/usr/bin/mozilla
/usr/local/firefox1_5
etc...
(For... (4 Replies)
Discussion started by: erwinfletch
4 Replies
3. Linux
Hi all,
I am working on USB data monitoring on Fedora Core 9. Kernel 2.6.25 has a built-in module (the one that isn't loadable, but compiles and links statically with the kernel during compilation) to snoop USB data. It is in <kernel_source_code>/drivers/usb/mon/.
I need to know if I can... (0 Replies)
Discussion started by: anitemp
0 Replies
4. Shell Programming and Scripting
Okay, so I have two "Hello, world!" scripts, "test.pl" and "test.sh".
#!/bin/perl -w
use strict;
print "Hello, world!\n";
#!/bin/csh
echo Hello,\ world!
When I run test.pl, it runs instantly, always. When I run test.sh, it takes anywhere between 4 and 22 seconds!
I'd like to know what... (3 Replies)
Discussion started by: acheong87
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have a problem I don't understand with fuser.
I launch a simple shell script mysleep.sh:
I launch the command fuser -fu mysleep.sh but fuser doesn't return anything excepted:
mysleep:
Then I modify my script switching from #!/bin/sh to #!/bin/ksh
I launch the command fuser -fu... (4 Replies)
Discussion started by: Peuj
4 Replies
6. OS X (Apple)
Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself.
But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies
7. Programming
I have made an packet capture application running on intel machine, it is capturing packets with src address- 17.0.0.0 destination ip- 66.0.0.0, source port- 0, destination port- 0, and protocol- 0 what does these packets mean ?
The code written to interpreter captured bytes is given below.... (5 Replies)
Discussion started by: arunpushkar
5 Replies
8. Ubuntu
Is there any way to compile smbfs module in kernel 3.10 running Ubuntu 12.04 LTS. I did a 'make menuconfig' and it shows cifs. I found out online that smbfs is deprecated and replaced by cifs. I have an old system with kernel version 2.4 which only has smbfs (no cifs). Is it possible to compile... (1 Reply)
Discussion started by: Monil
1 Replies
9. AIX
Hi,
I am planning to install a version of Informatica on my AIX box. It requires a specific java build in pap6470_27sr2-20141101_01(SR2).
The current link for IBM 64-bit SDK for AIX®, JavaTM Technology Edition, Version 7 Release 1 has a more recent version in j7r164redist.7.1.0.75.bin.
Is... (4 Replies)
Discussion started by: meetpraveens
4 Replies
10. Shell Programming and Scripting
Some question about the usage of shell scripts:
1.) Are the commands of the base shell scripts a subset of bash commands?
2.) Assume I got a long, long script WITHOUT the first line.
How can I find out if the script was originally designed für "sh" or "bash"?
3.) How can I check a given... (3 Replies)
Discussion started by: pstein
3 Replies
LEARN ABOUT NETBSD
rump_ext2fs
RUMP_EXT2FS(8) BSD System Manager's Manual RUMP_EXT2FS(8)
NAME
rump_ext2fs -- mount a ext2fs image with a userspace server
SYNOPSIS
file-system PUFFS
pseudo-device putter
rump_ext2fs [options] image mountpoint
DESCRIPTION
NOTE! This manual page describes features specific to the rump(3) file server. Please see mount_ext2fs(8) for a full description of the
available command line options.
The rump_ext2fs utility can be used to mount ext2fs file systems. It uses rump(3) and p2k(3) to facilitate running the file system as a
server in userspace. As opposed to mount_ext2fs(8), rump_ext2fs does not use file system code within the kernel and therefore does not
require kernel support except puffs(4). Apart from a minor speed penalty there is no downside with respect to in-kernel code.
rump_ext2fs does not require using vnconfig(8) for mounts from regular files and the file path can be passed directly as the image parameter.
In fact, the use of vnconfig(8) is discouraged, since it is unable to properly deal with images on sparse files.
In case the image contains multiple partitions, the desired partition must be indicated by appending the token ``%DISKLABEL:p%'' to the image
path. The letter ``p'' specifies the partition as obtained via disklabel(8). For example, to mount partition ``e'' from image /tmp/wd0.img,
use ``/tmp/wd0.img%DISKLABEL:e%''.
It is recommended that untrusted file system images be mounted with rump_ext2fs instead of mount_ext2fs(8). Corrupt file system images com-
monly cause the file system to crash the entire kernel, but with rump_ext2fs only the userspace server process will dump core.
To use rump_ext2fs via mount(8), the flags -o rump and -t ext2fs should be given. Similarly, rump_ext2fs is used instead of mount_ext2fs(8)
if ``rump'' is added to the options field of fstab(5).
SEE ALSO
p2k(3), puffs(3), rump(3), mount_ext2fs(8)
HISTORY
The rump_ext2fs utility first appeared in NetBSD 5.0.
BSD
November 21, 2010 BSD