08-10-2007
OK, I got your point now, my n00b mistake was to include the driver header in my user space program, although I don't really need something defined in it. Nevertheless, a good precausion to such errors in the feature.
Thanks for advising me
9 More Discussions You Might Find Interesting
1. Programming
$ gcc -Wall -Werror struct.c
struct.c: In function `main':
struct.c:18: error: dereferencing pointer to incomplete type
$ cat struct.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*Declaration of structure*/
struct human
{
char *first;
char gender;
int age;
} man,... (3 Replies)
Discussion started by: amit4g
3 Replies
2. Programming
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)
Discussion started by: jaganadh
1 Replies
3. Programming
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)
Discussion started by: lateralus01
2 Replies
4. UNIX for Dummies Questions & Answers
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)
Discussion started by: katwala
8 Replies
5. Programming
// 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)
Discussion started by: mind@work
2 Replies
6. Red Hat
:rolleyes::rolleyes::rolleyes:
Jul 18 19:31:31 plbp1s sendmail: STARTTLS: read error=syscall error (-1), errno=104, get_error=error:00000000:lib(0):func(0):reason(0)
---------- Post updated at 03:08 AM ---------- Previous update was at 03:07 AM ----------
# cat /var/log/maillog|egrep -i... (2 Replies)
Discussion started by: manalisharmabe
2 Replies
7. UNIX for Advanced & Expert Users
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)
Discussion started by: llagos
3 Replies
8. Programming
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)
Discussion started by: sreeharshasn
3 Replies
9. Shell Programming and Scripting
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 SUNOS
ddi-no-autodetach
ddi-forceattach(9P) Kernel Properties for Drivers ddi-forceattach(9P)
NAME
ddi-forceattach, ddi-no-autodetach - properties controlling driver attach/detach behavior
DESCRIPTION
Solaris device drivers are attached by devfsadm(1M) and by the kernel in response to open(2) requests from applications. Drivers not cur-
rently in use can be detached when the system experiences memory pressure. The ddi-forceattach and ddi-no-autodetach properties can be used
to customize driver attach/detach behavior.
The ddi-forceattach is an integer property, to be set globally by means of the driver.conf(4) file. Drivers with this property set to 1 are
loaded and attached to all possible instances during system startup. The driver will not be auto-detached due to system memory pressure.
The ddi-no-autodetach is an integer property to be set globally by means of the driver.conf(4) file or created dynamically by the driver on
a per-instance basis with ddi_prop_update_int(9F). When this property is set to 1, the kernel will not auto-detach driver due to system
memory pressure.
Note that ddi-forceattach implies ddi-no-autodetach. Setting either property to a non-integer value or an integer value not equal to 1 pro-
duces undefined results. These properties do not prevent driver detaching in response to reconfiguration requests, such as executing com-
mands cfgadm(1M), modunload(1M), rem_drv(1M), and update_drv(1M).
SEE ALSO
driver.conf(4)
Writing Device Drivers
SunOS 5.10 18 May 2001 ddi-forceattach(9P)