[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: __inb ??

>Does someone know, where __inb and friends are defined?
>I greped my way through the kernel-source and found that inb sometimes
>defines as __inbc and sometimes as __inb (include/asm-arm/io.h). I found
>__inbc in include/asm-arm/arch/io.h, but where is __inb?

__inb should be defined in asm-arch/arch/io.h as well.  But these definitions 
are strictly for the kernel only.  If you are trying to do port access from 
user space you should use ioperm, inb and outb from <sys/io.h>.


Reply to: