Ok Thanks. So actually getpid() doesn't cause mode switch.
But is it mandatory to execute  getpid()? If yes why

Regards,
Abhi

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert
Uytterhoeven
Sent: Tuesday, December 12, 2006 3:19 PM
To: Krishnappa Abhijith-A21204
Cc: User-mode Linux Kernel Development
Subject: Re: [uml-devel] Regarding getpid

On Tue, 12 Dec 2006, Krishnappa Abhijith-A21204 wrote:
>             "Process system calls must be nullified in the host, and 
> this is done by converting them into getpid. "
> How is system calls  are nullified by converting them to getpid() ?

Instead of calling the actual system call, it just calls getpid(). I.e.
the actual system call is not executed, and getpid() is more or less a
NOP.

Gr{oetje,eeting}s,

                                                Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 --
[EMAIL PROTECTED]

In personal conversations with technical people, I call myself a hacker.
But when I'm talking to journalists I just say "programmer" or something
like that.
                                                            -- Linus
Torvalds

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to