I have to second Don Cragun in that your requirement is far from clear, but with some assumptions I inferred this from your posts:
Does that come somewhere close to what you need?
Hi All,
I am having an XML tag like:
<detail sim_ser_no_1="898407109001000090"
imsi_1="452070001000090">
<security>ADM1=????</security>
<security>PIN1=????</security>
<security>PIN2=????</security>
... (2 Replies)
Hi,
I am working in device drivers. I am new to device drivers. i have invoked chardev.c.
the driver is insmoded. now i want to write something into this and i want to look what i have written. but i don't know how to write and see. please help me (0 Replies)
Hi Forum.
I was trying to search the following scenario on the forum but was not able to.
Let's say that I have a very large file that has some bad data in it (for ex: 0.0015 in the 12th column) and I would like to find the line number and remove that particular line.
What's the easiest... (3 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I must write a shell script that calls two external Perl functions--one of which sorts the data in a file, and... (6 Replies)
Hi all,
I have 2 files:
second file
I want if entries in one file will match in other file. It shuld wite approve before it
so output shuld be (1 Reply)
Hi all
I am here for help once again
I have two files
One file is like this with one columns
F2
B2
CAD
KGM
HTC
CSP
Second file is like this in 5 columns where firs column contain sometime entries of first file with space and other entries (12 Replies)
hi..i would ask about how to write over data to new file with BASH.
so..assume my data looks like this :
11
12
13
14
15
...and so on. It's always line by line. and that's for the first file.
i want to write over those numbers into second file but by using space. so my second file should be... (5 Replies)
Hi friend i have input as following XML file
<?xml version="1.0"?>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:camt.054.001.02">
<BkToCstmrDbtCdtNtfctn>
<GrpHdr><MsgId>LBP-RDJ-TE000000-130042430010001001</MsgId><CreDtTm>2013-01-04T03:21:30</CreDtTm></GrpHdr>... (3 Replies)
Hi,
I need to compare 2 text files with around 60000 rows and 1 column. I need to compare these and write the mismatch data to 3rd file.
File1 - file2 = file3
wc -l file1.txt
58112
wc -l file2.txt
55260
head -5 file1.txt
101214200123
101214700300
101250030067
101214100500... (10 Replies)
Discussion started by: Divya Nochiyil
10 Replies
LEARN ABOUT OPENSOLARIS
net_protocol_notify_register
net_protocol_notify_register(9F) Kernel Functions for Drivers net_protocol_notify_register(9F)NAME
net_protocol_notify_register, net_instance_protocol_unregister - add/delete a function to be called for changes to a protocol
SYNOPSIS
#include <sys/hook.h>
#include <sys/neti.h>
int net_protocol_notify_register(net_handle_t family,
hook_notify_fn_t *callback, void *arg);
int net_protocol_notify_unregister(net_handle_t family,
hook_notify_fn_t *callback);
typedef int (* hook_notify_fn_t)(hook_notify_cmd_t command,
void *arg, const char *name1, const char *name2, const char
*name3);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
PARAMETERS
family value returned from net_protocol_lookup().
callback function to call when a change occurs.
arg pointer to pass into the callback() function when a change occurs.
DESCRIPTION
The net_protocol_notify_register() function registers a function represented by the pointer callback to be called when there is a change to
the protocol represented by family. The types of changes for which notifications are available for is currently limited to the addition and
removal of protocols.
The net_protocol_notify_unregister() function removes the function specified by the pointer callback from the list of functions to call.
This call may fail if the specified function cannot be found.
Multiple callback functions may be registered through this interface. The same set of parameters is passed to each callback function. The
memory referenced through the pointers passed to the callback should be treated as pointing to read-only memory. Changing this data is
strictly prohibited.
The function that is called must not block any other protocols.
The arguments passed through to the callback are as follows (the command is either HN_REGISTER or HN_UNREGISTER):
name1 is the name of the protocol
name2 is NULL.
name3 is the name of the protocol being added/removed
RETURN VALUES
If these functions succeed, 0 is returned. Otherwise, the following error is returned:
EEXIST the given callback function is already registered.
CONTEXT
These functions may be called from user or kernel context.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
SEE ALSO attributes(5), net_protocol_lookup(9F)SunOS 5.11 30 Oct 2008 net_protocol_notify_register(9F)