[yess: Re: Wrong operators for the binary.]

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

 




--- Begin Message ---
On Tue, Dec 03, 2002 at 11:52:03AM -0800, Jose Luis Alarcon wrote:
> 
>   I am trying compile a module that contains this line:
> 
>      printk("Device: %d.%d\n", inode->i_rdev >> 8, inode->i_rdev & 0xFF);
> 
>   This module is extracted from Ori Pomerantz's "Linux Kernel Module Programming 
> Guide" http://sdn.vlsm.org/share/LDP/lkmpg from the chapter two "Character Device 
> Files", the source file is named chardev.c
> 
>   I think doesn't the matter, but the kernel in the machine with the problem is
> 2.5.49 and i'm using the module-init-tools-0.7

I think it does. I just found, that in 2.4 series the kdev_t is simple unsigned
short int, not a structure containing unsigned short field named value. It
simply seems, that the book bases on the 2.4. That's why you couldn't compile
the code.
-- 
tadeusz a. kadlubowski
--- End Message ---

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux