the sendpage function is not working

From: omkar lagu
Date: Sat Feb 18 2006 - 13:43:14 EST


hello to all,

We have a problem in the sendpage function
our code is like this

char *buff;
struct page *page1;

buff=__get_free_page();
/* we get a valid address in buff */

page1=virt_to_page(buff);
/*we get a valid address in page1 also*/

suc=sockt->ops->sendpage(sockt,page1,0,4096,0);
/* but we get negative value in suc */

we are not able to understand the problem hopeing for
reply in detail with an example


thanks in advance

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/