linux-um archives
 help / color / mirror / Atom feed
From: "D. Bahi" <dbahi@enterasys.com>
To: Olivier Crameri <olivier.crameri@epfl.ch>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] system call accessing the host os
Date: Wed, 05 Apr 2006 13:18:15 -0400	[thread overview]
Message-ID: <4433FBD7.6000404@enterasys.com> (raw)
In-Reply-To: <8F963598-0F1A-464A-991A-2FE95F9B418C@epfl.ch>

[-- Attachment #1: Type: text/plain, Size: 1857 bytes --]

what about this?

http://user-mode-linux.sourceforge.net/iomem.html

Olivier Crameri wrote:
> Hi,
>
> I'm currently working on a project in which we are using UML to access
> the host os and perform some operations.
> More precisely, we would like to have a system call in UML that parses
> a file in the host os.
>
> Since the UML kernel is a host process, I naively thought that I could
> use regular C directly. Indeed, I was able to create my system call,
> and then have some other C files compiled using host os headers such
> as <stdio.h> and <stdlib.h> by putting them in the USER_OBJS list of
> the Makefile.
>
> Unfortunately, I'm having some weird issues that I can't really
> understand. I can read the file using fread, but only in a buffer that
> I allocated using um_kmalloc. If I use a buffer allocated by malloc,
> the fread fails. Then, even if I replace all  my mallocs by
> um_kmallocs, some libc functions (such as sscanf) don't seem to work
> properly. I guess I'm missing something, but I can't figure out what.
>
> If anyone of you can help me, I'd really appreciate,
>
> With best regards,
>
> Olivier
>
> P.S.: I'm using 2.6.15.6 with the latest 2.6.15 patch and the guest
> kernel runs in skas3 mode.
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> that extends applications into web and mobile media. Attend the live
> webcast
> and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> User-mode-linux-devel mailing list
> User-mode-linux-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 187 bytes --]

  reply	other threads:[~2006-04-05 17:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-05 17:16 [uml-devel] system call accessing the host os Olivier Crameri
2006-04-05 17:18 ` D. Bahi [this message]
2006-04-05 18:18 ` Jeff Dike
2006-04-05 20:20   ` Olivier Crameri
2006-04-06  1:43     ` Jeff Dike
2006-04-06  7:18       ` Olivier Crameri
2006-04-07  0:20   ` Blaisorblade
2006-04-06 23:42     ` Jeff Dike
2006-04-07  8:20       ` Olivier Crameri
     [not found] <946EDC7F-5F36-4453-93E8-36BBC8D9F032@epfl.ch>
2006-04-05 17:24 ` Olivier Crameri
2006-04-05 17:28   ` D. Bahi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4433FBD7.6000404@enterasys.com \
    --to=dbahi@enterasys.com \
    --cc=olivier.crameri@epfl.ch \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox