Re: how can I find where is the macro or function deifined

2015-07-28 Thread Gnoleba GNOGBO
Can you give a procedure step by step please to answer please ? B. Regards Gnogbo Le 28 juil. 2015 17:41, Navy Cheng nav...@126.com a écrit : On Tue, Jul 28, 2015 at 06:03:16PM +0200, Ahmed Soliman wrote: Hi; when I used libc I never memorized where each function is located beyond the

Re: how can I find where is the macro or function deifined

2015-07-28 Thread Iuro Nascimento
Hi, git grep is very usefull to find stuff in the kernel tree. You can find macros using: git grep -n '#define list_entry(' to find file and line number of the macro list_entry. Regards, Iuro Nascimento On Tue, Jul 28, 2015 at 06:03:16PM +0200, Ahmed Soliman wrote: Hi; when I used libc I

Re: how can I find where is the macro or function deifined

2015-07-28 Thread Valdis . Kletnieks
On Tue, 28 Jul 2015 23:54:36 -, Gnoleba GNOGBO said: Can you give a procedure step by step please to answer please ? http://www.lmgtfy.com/?q=ctags+vim+tutorial http://www.lmgtfy.com/?q=ctags+emacs+tutorial pgpdWdmIZQnYO.pgp Description: PGP signature

bitops for handling 32 bits

2015-07-28 Thread Kevin Wilson
Hi all, Is there a kernel API for handling 32 bits ? I see a macro like BIT(nr) http://lxr.free-electrons.com/source/include/linux/bitops.h#L6 #define BIT(nr) (1UL (nr)) and also #define BIT_ULL(nr) (1ULL (nr)) However, these macros are using 64 bit semantics, so

Re: bitops for handling 32 bits

2015-07-28 Thread Manavendra Nath Manav
On Tue 28 Jul, 2015 20:24 Kevin Wilson wkev...@gmail.com wrote: Hi all, Is there a kernel API for handling 32 bits ? I see a macro like BIT(nr) http://lxr.free-electrons.com/source/include/linux/bitops.h#L6 #define BIT(nr) (1UL (nr)) and also #define BIT_ULL(nr)

how can I find where is the macro or function deifined

2015-07-28 Thread Ahmed Soliman
Hi; when I used libc I never memorized where each function is located beyond the basics (for example I never knew if strlen is in string.h or ctype.h or strlib.h ) I just check out the functions man pages by man strlen is their such functionality for the kernel where I dont need to memorize the

Re: how can I find where is the macro or function deifined

2015-07-28 Thread Navy Cheng
On Tue, Jul 28, 2015 at 08:25:04PM -0400, valdis.kletni...@vt.edu wrote: On Tue, 28 Jul 2015 23:54:36 -, Gnoleba GNOGBO said: Can you give a procedure step by step please to answer please ? http://www.lmgtfy.com/?q=ctags+vim+tutorial http://www.lmgtfy.com/?q=ctags+emacs+tutorial Hi,

Re: how can I find where is the macro or function deifined

2015-07-28 Thread Manavendra Nath Manav
On Tue 28 Jul, 2015 21:41 Ahmed Soliman ahmedsoliman0x...@gmail.com wrote: Hi; when I used libc I never memorized where each function is located beyond the basics (for example I never knew if strlen is in string.h or ctype.h or strlib.h ) I just check out the functions man pages by man strlen is

Re: bitops for handling 32 bits

2015-07-28 Thread Anish Kumar
On Jul 28, 2015, at 10:46 PM, Kevin Wilson wkev...@gmail.com wrote: Hi all, Is there a kernel API for handling 32 bits ? I see a macro like BIT(nr) http://lxr.free-electrons.com/source/include/linux/bitops.h#L6 #define BIT(nr) (1UL (nr)) and also #define

Re: HOSTAPD Error log

2015-07-28 Thread Amit Gupta
Hi All, Thanks for your quick response. Valdis, I tried with strace stuff, but I faced CPU halt issue. Actually along with those error logs..sometime I m facing CPU HALT issue after executing #hostapd -B /etc/hostapd.conf. Pranay, I tried your way to debug kernel for finding the root cause of

Re: how can I find where is the macro or function deifined

2015-07-28 Thread Navy Cheng
On Tue, Jul 28, 2015 at 06:03:16PM +0200, Ahmed Soliman wrote: Hi; when I used libc I never memorized where each function is located beyond the basics (for example I never knew if strlen is in string.h or ctype.h or strlib.h ) I just check out the functions man pages by man strlen is their