insmod error: Invalid module format.

2005-08-16 Thread Nikhil Dharashivkar
Hi all,
 I have RH9 installed with  2.6.7-1 kernel. I am able to compile
the module but , when i load this module using insmod i get an error
"insmod: error inserting './simple.o': -1 Invalid module format"

Please, any one tell me what is this meant ?

-- 
Thanks and Regards,
 Nikhil.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: query...

2005-08-09 Thread Nikhil Dharashivkar
I think it could be root permissions problem. Are you running this
binary as root user ?


On 8/9/05, raja <[EMAIL PROTECTED]> wrote:
>Hi,
>   I am Creating a posix message queue using the following code.
> 
> 
> #include 
> #include 
> #include 
> #include 
> #include 
> #include 
> #include 
> #include 
> 
> int main(int argc,char *argv[])
> {
> mqd_t mq_des;
> mq_des = mq_open(argv[1],O_CREAT | O_RDWR | O_EXCL,S_IRUSR | S_IWUSR
> | S_IRGRP | S_IROTH , NULL);
> if(mq_des < 0)
> {
> printf("Unable To Create MsgQ\n");
> perror("mq_open");
> return mq_des;
> }
> printf("MsgQ is Opened With Descriptor : %d\n",mq_des);
> return mq_des;
> }
> 
> 
> and I after compiling I am giving
> 
> ./a.out /root/Desktop/msgq1
> 
> 
> But It is giving as unable to create message queue and showing error as
> 'permission denied'
> 
> Would you please help me.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [EMAIL PROTECTED]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 


-- 
Thanks and Regards,
 Nikhil.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH] remove warning about e1000_suspend

2005-08-07 Thread Nikhil Dharashivkar
Hi Martin,
But e1000_notify_reboot () function calls this e1000_suspend()
function irrespective of  CONFIG_FM is defined or not. So according to
your soution, what if CONFIG_FM is not defined.

On 8/8/05, Martin J. Bligh <[EMAIL PROTECTED]> wrote:
> e1000_suspend is only used under #ifdef CONFIG_PM. Move the declaration
> of it to be the same way, just like e1000_resume, otherwise gcc whines
> on compile. I offer as evidence:
> 
> static struct pci_driver e1000_driver = {
>.name = e1000_driver_name,
>   .id_table = e1000_pci_tbl,
>   .probe= e1000_probe,
>   .remove   = __devexit_p(e1000_remove),
>   /* Power Managment Hooks */
> #ifdef CONFIG_PM
>.suspend  = e1000_suspend,
>.resume   = e1000_resume
> #endif
> };
> 
> 
> diff -aurpN -X /home/fletch/.diff.exclude 
> virgin/drivers/net/e1000/e1000_main.c 
> e1000_suspend/drivers/net/e1000/e1000_main.c
> --- virgin/drivers/net/e1000/e1000_main.c   2005-08-07 09:15:36.0 
> -0700
> +++ e1000_suspend/drivers/net/e1000/e1000_main.c2005-08-07 
> 12:10:42.0 -0700
> @@ -162,8 +162,8 @@ static void e1000_vlan_rx_add_vid(struct
>  static void e1000_vlan_rx_kill_vid(struct net_device *netdev, uint16_t vid);
>  static void e1000_restore_vlan(struct e1000_adapter *adapter);
> 
> -static int e1000_suspend(struct pci_dev *pdev, uint32_t state);
>  #ifdef CONFIG_PM
> +static int e1000_suspend(struct pci_dev *pdev, uint32_t state);
>  static int e1000_resume(struct pci_dev *pdev);
>  #endif
> 
> @@ -3641,6 +3641,7 @@ e1000_set_spd_dplx(struct e1000_adapter
> return 0;
>  }
> 
> +#ifdef CONFIG_PM
>  static int
>  e1000_suspend(struct pci_dev *pdev, uint32_t state)
>  {
> @@ -3733,7 +3734,6 @@ e1000_suspend(struct pci_dev *pdev, uint
> return 0;
>  }
> 
> -#ifdef CONFIG_PM
>  static int
>  e1000_resume(struct pci_dev *pdev)
>  {
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [EMAIL PROTECTED]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 


-- 
Thanks and Regards,
 Nikhil.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/