Re: how to call system call from kernelspace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 27, 2010 at 11:46, SandeepKsinha <sandeepksinha@xxxxxxxxx> wrote:
>
> I think Mulyadi is referring to these sequence of steps:
>
>      fs = get_fs();     /* save previous value */
>      set_fs (get_ds()); /* use kernel limit */
>
>      /* system calls can be invoked */
>
>      set_fs(fs); /* restore before returning to user space */
>
>
> Refer : http://www.linux.it/~rubini/docs/ksys/ksys.html

Bingo!!! That's it. Again, I am not sure that it is still needed in
your case, Rahul, so kindly experiment with it first.

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux