Re: modify_ldt() system call invokation

From: guy keren (choo_at_nonexisting.hamakor.org.il)
Date: Tue 08 Jan 2002 - 10:36:08 IST


On Tue, 27 Dec 2005, Rafi Gordon wrote:

> Hello,
> Processes can change their Local Descriptor Table using
> modify_ldt() system called.
> see "manmodify_ldt" or :
> (for x386 look at include/asm-i386/unistd.h:
> #define __NR_modify_ldt 123)
>
> However, usually there is no need to manipulate the LDT
> with this system call.
>
> I saw in wine a call to modify_ldt()(libs/wine/ldt.c)
>
> I was wondering in which occasions is this
> system call being invoked: did anybody had encountered (or used himeslf)
> a call to modify_ldt() in other apps (emulators maybe ? ).

someone once told me of the following wish for a program - we allocate
small buffers that read data (from the network, for example). once we're
acknowledged that we got "enough data", we want to pass the entire
stream to a module that processes it. we want the data to be contiguous in
memory - so the processing code won't have to deal with a list of buffers.
modify_ldt can be used here.

we never got to actually implementing it - but i do wonder if this is
feasible or not.

anyone has an idea?

-- 
guy
"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy
=================================================================
To unsubscribe, send mail to linux-il-request_at_linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request_at_linux.org.il


This archive was generated by hypermail 2.1.7 : Wed 28 Dec 2005 - 09:30:17 IST