set_fs(get_ds()) needed in socket operations?

From: Rufuss Angor (rufusz@usa.net)
Date: Thu May 24 2001 - 02:26:11 EST


Hi,
I came across this while developing a networked file system:

If I do the socket ops using standard kernel functions they block forever. The
solution I found in some old module was to load the FS segment with the value
of DS and then restore it.

Can someone please explain why this is needed? And isn't it architecture
dependent?

Thanx for your patience with a newbie...

Ruf

____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu May 31 2001 - 21:00:14 EST