Does this mean that I have to wrap my struct definition with the __KERNEL__ define directive? I though it is included by defaul when compiling modules (or maybe it's not for user space apps?).
Dear colleagues,
One of my friend have a problem with c code. While compiling a c program it displays a message like
"array type has incomplete element type". Any body can provide a solution for it.
Jaganadh.G (1 Reply)
I'm trying to compile a 2.4.26 kernel but I have to apply two patches to it.
The patches are:
linux-2.4.26-xbox.patch
openMosix-2.4.26-1
This is the reason that it doesn't compile. There is only one error but I'm not familiar with C or C++(Unfortunately only Java and some lower-level... (2 Replies)
I'm getting the following Error:
prepare_pcap.c: In function `prepare_pkts':
prepare_pcap.c:127: error: dereferencing pointer to incomplete type
prepare_pcap.c:138: error: dereferencing pointer to incomplete type
====================================
This is the part of the relevant... (8 Replies)
// Hello all,
I am having this error "Dereferencing pointer to incomplete type " on these 2 lines:
xpoint = my_point->x;
ypoint = my_point->y;
I am having no clue y this is happening.
Any help would be greately appreciated!!!!
#include<stdio.h>
#include<string.h>... (2 Replies)
Hi Gurues,
I need to modify an existing script that uses find to search a folder, and then move its contents to a folder. What I need to do is run gzip on each file after it's moved.
So, I ran this little test:
Put a ls.tar file on my $HOME, mkdir tmp, and then:
virtuo@tnpmprd01: find .... (3 Replies)
I am getting a dereferencing pointer to incomplete type error when i compile the following code on lines highlighted in red. Can anyone help me in identifying what is wrong in the code?
#include<stdio.h>
#include<stdlib.h>
typedef struct{
int info;
struct node* link ;
} node;
void... (3 Replies)
Hi all,
Sample data file...
9f680197||y|a|6
9f6801||6
9f68017|20120511|y|6
9f68017|y|1
9f68017|6
9f68017|20120511|N|2
9f68017|MD|212343907|20120511|N|2
9f68017212343907|20120511|N|2
9f68017N|3
9f68017|20120511|y|3
9f68017|MD|212343907|20120511|N|3
9f68017|MD|212343907|20120511|y|3... (3 Replies)
Discussion started by: bmk
3 Replies
LEARN ABOUT REDHAT
init_module
INIT_MODULE(2) Linux Module Support INIT_MODULE(2)NAME
init_module - initialize a loadable module entry
SYNOPSIS
#include <linux/module.h>
int init_module(const char *name, struct module *image);
DESCRIPTION
init_module loads the relocated module image into kernel space and runs the module's init function.
The module image begins with a module structure and is followed by code and data as appropriate. The module structure is defined as fol-
lows:
struct module
{
unsigned long size_of_struct;
struct module *next;
const char *name;
unsigned long size;
long usecount;
unsigned long flags;
unsigned int nsyms;
unsigned int ndeps;
struct module_symbol *syms;
struct module_ref *deps;
struct module_ref *refs;
int (*init)(void);
void (*cleanup)(void);
const struct exception_table_entry *ex_table_start;
const struct exception_table_entry *ex_table_end;
#ifdef __alpha__
unsigned long gp;
#endif
};
All of the pointer fields, with the exception of next and refs, are expected to point within the module body and be initialized as appro-
priate for kernel space, i.e. relocated with the rest of the module.
This system call is only open to the superuser.
RETURN VALUE
On success, zero is returned. On error, -1 is returned and errno is set appropriately.
ERRORS
EPERM The user is not the superuser.
ENOENT No module by that name exists.
EINVAL Some image slot filled in incorrectly, image->name does not correspond to the original module name, some image->deps entry does not
correspond to a loaded module, or some other similar inconsistency.
EBUSY The module's initialization routine failed.
EFAULT name or image is outside the program's accessible address space.
SEE ALSO create_module(2), delete_module(2), query_module(2).
Linux 2.1.17 26 Dec 1996 INIT_MODULE(2)