Yes, Scrutinizer's script works with unsorted data.
Yes, this section prints the 1st line then jumps to the next line.
The script takes lots of memory that is processed in the END section, after reading the whole file.
Senhias script reads the file twice that takes time, but maybe takes less memory.
---------- Post updated at 01:14 PM ---------- Previous update was at 12:24 PM ----------
The following is a little improvement regarding memory consumption and speed:
Doesn't need a sorted file.
---------- Post updated at 01:59 PM ---------- Previous update was at 01:14 PM ----------
The following uses minimum memory but is a little slower:
Last edited by MadeInGermany; 01-13-2015 at 02:20 PM..
This User Gave Thanks to MadeInGermany For This Post:
Hi all,
How can I check if a particular user id belongs to a group?
(ie. how to check if the current user `whoami` is part of the a certain group? do i use the group name of group id?)
Thanks in advance (2 Replies)
Hi all,
I would like to ensure that a volume group has an effective quorum setting of 1 (or off). I know you can change the quorum setting using the chvg -Q command but want to know if the setting has been changed before the vg was varied on or a reboot.
In other words how can I ensure that... (3 Replies)
Hello,
How can I obtain a lists of disks with their size (anytype: SAN LUNs, internal disks, etc.) attached to the system and not being extended inside a volume group?
The purpose of this list is to be part of a function of a script that I'm doing in order to resize filesystems and in the... (6 Replies)
Hi All,
I am stuck with a problem here. I have two directories with really huge number of files about 200000+. I did some file processing and in between my program crashed thereby creating some inconsistent files. Running the script over again is out of question now as it takes lot of time to... (1 Reply)
Hi huys,
Sorry for my bad english, i'm french :o .
I've got a little question : is there a way to check status of a VG on aix 6.1 ? I want to know if a VG is locked or not...
I can do a "lsvg -Ll rootvg" for example, but if this VG is already locked, the process waits without gives me the... (2 Replies)
Hi Gurus,
I need check existing number of file based on the list in file list.
for example:
in my file list. I have below:
abc, file1.txt
abc, file2.txt
abc, file3.txt
abc, file4.txt
cde, filea1.txt
cde, filea2.txt
cde, filea3.txt
...
in my current file direcotry, I have file:... (0 Replies)
An id was a part of a particular user group. All of a sudden that id was removed from that group, because of which many things failed. How do I find out when/who modified the id settings? (2 Replies)
Discussion started by: ggayathri
2 Replies
LEARN ABOUT MINIX
scsi_free_consistent_buf
scsi_free_consistent_buf(9F) Kernel Functions for Drivers scsi_free_consistent_buf(9F)NAME
scsi_free_consistent_buf - free a previously allocated SCSI DMA I/O buffer
SYNOPSIS
#include <sys/scsi/scsi.h>
void scsi_free_consistent_buf(struct buf *bp);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
PARAMETERS
bp Pointer to the buf(9S) structure.
DESCRIPTION
scsi_free_consistent_buf() frees a buffer header and consistent data buffer that was previously allocated using scsi_alloc_consis-
tent_buf(9F).
CONTEXT
scsi_free_consistent_buf() may be called from either the user or the interrupt levels.
SEE ALSO freerbuf(9F), scsi_alloc_consistent_buf(9F), buf(9S)
Writing Device Drivers
WARNING
scsi_free_consistent_buf() will call freerbuf(9F) to free the
buf(9S) that was allocated before or during the call to scsi_alloc_consistent_buf(9F).
If consistent memory is bound to a scsi_pkt(9S), the pkt should be destroyed before freeing the consistent memory.
SunOS 5.10 20 Jul 1998 scsi_free_consistent_buf(9F)