lkml.org 
[lkml]   [2001]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectReg putname() function
Hi,

Can anybody please tell me what the following assembly code means:
Tne function put_unused_fd() does FD_CLR() to clear the file descriptor
allocated in case file pointer could not be got. Before returning -1 as
file descriptor it goes to put_unused_fd() which calls FD_CLR() which is
as follows;

#define __FD_CLR(fd,fdsetp) \
__asm__ __volatile__("btrl %1,%0": \
"=m" (*(__kernel_fd_set *) (fdsetp)):"r" ((int)
(fd)))

This is in asm/posixtypes.h. Please decipher this for me.

Thanks in advance,
Regards,
sathish


-
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/

\
 
 \ /
  Last update: 2005-03-22 12:55    [W:0.266 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site