You don't need to do this
> If someone has written such a function, or knows which already implemented
> function of Linux does that, please inform me.
mm_segment_t fs;
fs=get_fs();
set_fs(get_ds());
/* User space is now the kernel */
/* Put it back again */
set_fs(fs);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/