10-05-2002
About link list
I should use a pointer or a struct as the head of a linklist. I want use the linklist as the data structure for graph.
Such as
struct node {
int vertex;
struct node * next;
};
typedef struct node NT;
struct list{
int row;
NT * neighbour;
struct list * next;
}
typedef struct list LT;
which one is better:
LT linklist;
or
LT * linklist;
Thanks
Last edited by xli3; 10-05-2002 at 02:30 AM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all
i want to list an archive with his link only
i use ls -l and appear a list whit all information about file. how can i quit all less name and link?
:confused: (1 Reply)
Discussion started by: micromicrin
1 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
Can any one please explain me what is the difference between hard link and soft link in UNIX.
Thanks in advance
Raja Chokalingam. (2 Replies)
Discussion started by: RAJACHOKALINGAM
2 Replies
3. UNIX for Dummies Questions & Answers
hello folks
how y'all doin
well i have some questions about symbolic link and hard link
hope some one answer me
i open terminal and join as root
and i wrote ln -s blah blah
then i wrote ls
i see red file called blah blah
but didn't understand what is this can some one explain and... (2 Replies)
Discussion started by: detective linux
2 Replies
4. UNIX for Dummies Questions & Answers
Hi Experts,
Please help me out to find out difference between a hard link and a soft link.
I am new in unix plz help me with some example commands ( for creating such links).
Regards
S.Kamakshi :) (2 Replies)
Discussion started by: kamakshi s
2 Replies
5. Programming
Hello All,
I've encountered a strange behaviour from g++ that doesn't make sense to me. Maybe you can shed some light on it:
I have a bunch of source files and want to compile them and link them with a static library liba.a located in /usr/local/lib64 into an executable
Approach 1 works... (0 Replies)
Discussion started by: magelord
0 Replies
6. UNIX for Dummies Questions & Answers
Hi everybody,
I read about treads realted to this issue but they did not resovle issue given below.
Please help me resolve issue given below
I have html file under /srv/www/htdocs/actual_folder
ls actual_folder/
test.html
and following link works... (0 Replies)
Discussion started by: newbielgn
0 Replies
7. Shell Programming and Scripting
how to list all symbolic link can i use find / path -type l (1 Reply)
Discussion started by: avtalan
1 Replies
8. How to Post in the The UNIX and Linux Forums
how to list all symbolic link, can i use find / path -type l (2 Replies)
Discussion started by: avtalan
2 Replies
9. Solaris
Hi All
I am facing an issue with our new solaris machine.
in /var/adm/messages
root@Prod-App1:/var/tmp#
root@Prod-App1:/var/tmp#
root@Prod-App1:/var/tmp# cat /var/adm//messages
Apr 20 03:10:01 Prod-App1 syslogd: line 25: WARNING: loghost could not be resolved
Apr 20 08:24:18 Prod-App1... (0 Replies)
Discussion started by: javeedkaleem
0 Replies
10. Solaris
Hi All
I am facing an issue with our new solaris machine.
in /var/adm/messages
Apr 22 16:43:05 Prod-App1 in.routed: interface net0 to 172.16.101.1 turned off
Apr 22 16:43:33 Prod-App1 mac: NOTICE: nxge0 link up, 1000 Mbps, full duplex
Apr 22 16:43:34 Prod-App1 mac: NOTICE: nxge0 link... (2 Replies)
Discussion started by: javeedkaleem
2 Replies
LEARN ABOUT CENTOS
struct_hrtimer
STRUCT
HRTIMER(9) Driver Basics STRUCT HRTIMER(9)
NAME
struct_hrtimer - the basic hrtimer structure
SYNOPSIS
struct hrtimer {
struct timerqueue_node node;
ktime_t _softexpires;
enum hrtimer_restart (* function) (struct hrtimer *);
struct hrtimer_clock_base * base;
unsigned long state;
#ifdef CONFIG_TIMER_STATS
int start_pid;
void * start_site;
char start_comm[16];
#endif
};
MEMBERS
node
timerqueue node, which also manages node.expires, the absolute expiry time in the hrtimers internal representation. The time is related
to the clock on which the timer is based. Is setup by adding slack to the _softexpires value. For non range timers identical to
_softexpires.
_softexpires
the absolute earliest expiry time of the hrtimer. The time which was given as expiry time when the timer was armed.
function
timer expiry callback function
base
pointer to the timer base (per cpu and per clock)
state
state information (See bit values above)
start_pid
timer statistics field to store the pid of the task which started the timer
start_site
timer statistics field to store the site where the timer was started
start_comm[16]
timer statistics field to store the name of the process which started the timer
DESCRIPTION
The hrtimer structure must be initialized by hrtimer_init
COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 STRUCT HRTIMER(9)