Re: linux kernel modules

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

 



Hi Martin,

Check < cat /proc/ioports > prints all ioport addresses.

you should check the  following function for good details.


#include <linux/ioport.h>
int check_region(unsigned long start, unsigned long len);
struct resource *request_region(unsigned long start,
unsigned long len, char *name);
void release_region(unsigned long start, unsigned long len);


Regards:
Pulkit Goel
mail: vipulkit.goel@xxxxxxxxx
        email@xxxxxxxxxxxxxx

On Fri, Nov 27, 2009 at 3:09 AM, Matthias Kaehlcke <matthias@xxxxxxxxxxxx> wrote:
hi martin,

El Thu, Nov 26, 2009 at 10:26:07PM +0100 Martin Knappe ha dit:

>    ive written a simple cmos driver and try to load it
>    but when i do insmod, i get
>
>    [ 9664.617003] cmos: I/O port 0x70 is not free.
>
>    how can i find out which other module is using this port?

'cat /proc/ioports' should give you a clue

best regards

--
Matthias Kaehlcke
Embedded Linux Developer
Barcelona

             You can't separate peace from freedom because no
              one can be at peace unless he has his freedom
                             (Malcolm X)
                                                                .''`.
   using free software / Debian GNU/Linux | http://debian.org  : :'  :
                                                               `. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4                  `-

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[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