10 More Discussions You Might Find Interesting
1. 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
2. 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
3. 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
4. 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
5. UNIX for Dummies Questions & Answers
Hi ,
i am trying to make a symbolic link for an existing directory, but i am facng some problems regarding the usage of command.
If there is no directory i can make a symbolic link, but for an existing directory i am not able to.
can anyone post me the exact usage if we already have the... (1 Reply)
Discussion started by: sahasra
1 Replies
6. Shell Programming and Scripting
I have a source file like this,
L4058S462 34329094 F51010141TK1070000483L4058S462 34329094 0232384840 381892 182 5690
L4058S462 34329094 F51020141FIRST CLEARING, LLC A/C 3432-9094
L4058S462 34329094 F51030141JOHAN HOLMQVIST ... (1 Reply)
Discussion started by: saravanamr
1 Replies
7. Solaris
Pre: no gpasswd/adduser
there is just usermod can be used, also there is no -a option for usermod.
How should I add a user into a group? (4 Replies)
Discussion started by: a2156z
4 Replies
8. Shell Programming and Scripting
I want to look into a folder to see if there are any folders within it. If there are, I need to check inside each folder to see if it contains a .pdf file
So
If /myserver/myfolder/
contains a folder AND that folder conatins a .pdf file
do X
Else
do Z
I may have multiple folders and... (4 Replies)
Discussion started by: crowman
4 Replies
9. 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
10. 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
mod_install(9F) Kernel Functions for Drivers mod_install(9F)
NAME
mod_install, mod_remove, mod_info, mod_modname - add, remove or query a loadable module
SYNOPSIS
#include <sys/modctl.h>
int mod_install(struct modlinkage *modlinkage);
int mod_remove(struct modlinkage *modlinkage);
int mod_info(struct modlinkage *modlinkage,
struct modinfo *modinfo);
const char *mod_modname(struct modlinkage *modlinkage);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
PARAMETERS
modlinkage Pointer to the loadable module's modlinkage structure which describes what type(s) of module elements are included in this
loadable module.
modinfo Pointer to the modinfo structure passed to _info(9E).
DESCRIPTION
mod_install() must be called from a module's _init(9E) routine.
mod_remove() must be called from a module's _fini(9E) routine.
mod_info() must be called from a module's _info(9E) routine.
mod_modname() can be called from any module routine.
When _init(9E) is executing, its call to mod_install() enables other threads to call attach(9E) even prior to mod_install() returning and
_init(9E) completion. From a programming standpoint this means that all _init(9E) initialization must occur prior to _init(9E) calling
mod_install(). If mod_install() fails (non-zero return value), any initialization must be undone.
When _fini(9E) is executing, another thread may call attach(9E) prior to _fini(9E) calling mod_remove(). If this occurs, the mod_remove()
fails (non-zero return). From a programming standpoint, this means that _init(9E) initilizations should only be undone after a successful
return from mod_remove().
To query the name of a module, use mod_modname(). If the module is a driver, the module name is the same as the driver name. This function
can be used to avoid compiled-in knowledge of the module name, and is of particular use when _init(9E) needs to call a function like
kstat_create(9F).
RETURN VALUES
mod_install() and mod_remove() return 0 upon success and non-zero on failure.
mod_info() returns a non-zero value on success and 0 upon failure.
mod_modname() returns the name of the module. The returned name remains valid as long as the module remains loaded.
EXAMPLES
See _init(9E) for an example that uses these functions.
SEE ALSO
_fini(9E), _info(9E), _init(9E), kstat_create(9F), modldrv(9S), modlinkage(9S), modlstrmod(9S)
Writing Device Drivers
SunOS 5.11 8 Jul 2008 mod_install(9F)