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 [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
