[lkml]   [2001]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectReg putname() function

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)

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

Thanks in advance,

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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