Searched refs:cg (Results 1 - 25 of 30) sorted by relevance

12

/illumos-gate/usr/src/uts/common/syscall/
H A Dcorectl.c174 struct core_globals *cg; local
176 cg = kmem_alloc(sizeof (*cg), KM_SLEEP);
177 mutex_init(&cg->core_lock, NULL, MUTEX_DEFAULT, NULL);
178 cg->core_file = NULL;
179 cg->core_options = CC_PROCESS_PATH;
180 cg->core_content = CC_CONTENT_DEFAULT;
181 cg->core_rlimit = RLIM64_INFINITY;
182 cg->core_default_path = corectl_path_alloc("core");
183 cg
195 struct core_globals *cg = arg; local
212 struct core_globals *cg; local
246 struct core_globals *cg; local
539 struct core_globals *cg; local
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dpass5.c51 struct cg *cg = &cgrp; local
61 struct cg cg; /* the rest of buf has the bitmaps */ member in union:__anon551
65 struct cg *newcg = &u.cg;
124 * The cg summaries are not always updated when using
143 err = cg_sanity(cg, c);
149 fix_cg(cg, c);
157 if (now > cg
[all...]
H A Dsetup.c63 * cylinder group and the (struct cg) size.
66 /* base cg */ (sizeof (struct cg) + \
533 int cg = 0; local
560 cg = proto.fs_ncg;
572 for (cg = 0; cg < proto.fs_ncg; cg++) {
573 bflag = fsbtodb(&proto, cgsblock(&proto, cg));
588 if (first && (cg >
[all...]
H A Dinode.c633 "Bad fragment position: %d..%d spans start of cg metadata\n",
641 "Bad frag pos: %d..%d crosses end of cg\n",
707 * cg's inodes at one time.
1130 struct cg *cgp = &cgrp;
1131 int cg; local
1169 * scratch and do a comparison, but for that to work the cg has
1171 * trouble reading the cg, cg_sanity() should kick it out so
1174 cg = itog(&sblock, ino);
1175 (void) getblk(&cgblk, cgtod(&sblock, cg), (size_t)sblock.fs_cgsize);
1176 err = cg_sanity(cgp, cg);
1381 int cg; local
[all...]
H A Dfsck.h115 struct cg *b_cg; /* cylinder group */
533 caddr_t cg_sanity(struct cg *, int);
559 void fix_cg(struct cg *, int);
H A Dpass4.c164 struct cg *cgp = &cgrp;
H A Dutilities.c1880 * Make sure that a cg header looks at least moderately reasonable.
1886 * Returns a NULL pointer if the cg is sane enough for our needs, else
1906 cg_sanity(struct cg *cgp, int cgno)
2042 * original values for a struct cg. This implies that, since these
2052 struct cg *cgp;
2074 * Corrects all fields in the cg that can be done with the available
2078 fix_cg(struct cg *cgp, int cgno)
2156 * Reset the magic, as we've recreated this cg, also
2157 * update the cg_time, as we're writing out the cg
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_alloc.c110 int cg; local
141 cg = (int)itog(fs, ip->i_number);
143 cg = dtog(fs, bpref);
145 bno = (daddr_t)hashalloc(ip, cg, (long)bpref, size,
188 int cg, request; local
223 cg = dtog(fs, bprev);
224 bno = fragextend(ip, cg, (long)bprev, osize, nsize);
246 bno = (daddr_t)hashalloc(ip, cg, (long)bpref, request,
299 int cg; local
337 cg
477 int cg, minndir, mincg, avgifree, mininode, minbpg, ifree; local
539 int cg; local
631 int cg, bmap, bbase; local
778 int cg; local
845 hashalloc(struct inode *ip, int cg, long pref, int size, ulong_t (*allocator)()) argument
894 fragextend(struct inode *ip, int cg, long bprev, int osize, int nsize) argument
975 alloccg(struct inode *ip, int cg, daddr_t bpref, int size) argument
1291 ialloccg(struct inode *ip, int cg, daddr_t ipref, int mode) argument
1340 "fs = %s\\n", cg, (int)cgp->cg_irotor, fs->fs_fsmnt); local
1959 int cg, cgblks, savecg, savenblk, curnblk, startcg; local
[all...]
H A Dufs_snap.c285 struct cg *cgp; /* cylinder group data */
286 ulong_t cg; local
300 for (cg = 0; cg < fs->fs_ncg; cg++) {
303 (daddr_t)fsbtodb(fs, cgtod(fs, cg)), (int)fs->fs_cgsize);
312 cmn_err(CE_WARN, "ufs_snap_find_candidates: cg %lu "
314 "magic number (0x%x)", cg, cgp->cg_magic, CG_MAGIC);
H A Dufs_subr.c345 * information (e.g., cg and inode info) to be flushed back.
1232 #define SI_BUFSZ roundup(sizeof (struct cg), DEV_BSIZE)
1245 struct cg *cgp;
1247 int error = 0, cg = 0; local
1271 ncg = MIN(NSIBUF, (fs->fs_ncg - cg));
1273 bp->b_blkno = (daddr_t)fsbtodb(fs, cgtod(fs, cg + i));
1289 sip[cg + i] = cgp->cg_cs;
1296 cg += ncg;
1297 } while (cg < fs->fs_ncg);
/illumos-gate/usr/src/boot/sys/ufs/ffs/
H A Dfs.h57 * The beginning of cylinder group cg in fs, is given by
58 * the ``cgbase(fs, cg)'' macro.
108 * thus changes to (struct cg) must keep its size within MINBSIZE.
266 int32_t fs_dblkno; /* offset of first data after cg */
326 int32_t fs_cgrotor; /* last cg searched */
329 struct csum *fs_csp; /* (u) cg summary info buffer */
349 int32_t fs_save_cgsize; /* save real cg size to use fs_bsize */
432 #define ACTIVECGNUM(fs, cg) ((fs)->fs_active[(cg) / (NBBY * sizeof(int))])
433 #define ACTIVECGOFF(cg) (
473 struct cg { struct
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Dcore.c85 core_log(struct core_globals *cg, int error, const char *why, const char *path, argument
92 if (!(cg->core_options & CC_GLOBAL_LOG))
326 do_core(char *fp, int sig, enum core_types core_type, struct core_globals *cg) argument
341 mutex_enter(&cg->core_lock);
342 content = cg->core_content;
343 mutex_exit(&cg->core_lock);
344 rlimit = cg->core_rlimit;
372 !(cg->core_options & CC_GLOBAL_SETID)) ||
374 !(cg->core_options & CC_PROCESS_SETID)))
570 struct core_globals *cg, cha
569 dump_one_core(int sig, rlim64_t rlimit, enum core_types core_type, struct core_globals *cg, char **name) argument
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/ufs/
H A Dufs.c463 struct cg cg; local
465 if (mdb_vread(&cg, sizeof (cg), addr) == -1) {
466 mdb_warn("failed to read cg struct at %p", addr);
470 if (cg.cg_magic != CG_MAGIC)
473 return (wsp->walk_callback(addr, &cg, wsp->walk_cbdata));
513 cg(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) function
516 struct cg cg; local
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/fsdb/
H A Dfsdb.c139 #define CGRP (sizeof (struct cg))
328 static void printcg(struct cg *);
1293 if (match("cg", 2)) { /* cylinder group */
3612 struct cg *cg; local
3833 cg = (struct cg *)cptr;
3835 cur_cgrp = cg->cg_cgx + 1;
3843 if (! override && !cg_chkmagic(cg)) {
3851 printcg(cg);
4683 printcg(struct cg *cg) argument
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DmDNS.c339 CacheGroup *cg; local
340 for (cg = m->rrcache_hash[slot]; cg; cg=cg->next)
341 if (cg->namehash == namehash && SameDomainName(cg->name, name))
343 return(cg);
2995 const CacheGroup *const cg = CacheGroupForName(m, slot, q->qnamehash, &q->qname); local
2999 for (rr = cg
3066 CacheGroup *cg; local
3088 CacheGroup *const cg = CacheGroupForName(m, HashSlot(name), namehash, name); local
3098 CacheGroup *const cg = CacheGroupForName(m, HashSlot(&q->qname), q->qnamehash, &q->qname); local
3271 const CacheGroup *const cg = CacheGroupForName(m, slot, q->qnamehash, &q->qname); local
3304 CacheGroup *cg; local
4083 CacheGroup *cg = CacheGroupForName(m, slot, namehash, name); local
4374 CacheGroup *cg; local
4421 CheckCacheExpiration(mDNS *const m, const mDNSu32 slot, CacheGroup *const cg) argument
4606 CacheGroup *const cg = CacheGroupForName(m, slot, q->qnamehash, &q->qname); local
4891 GetCacheRecord(mDNS *const m, CacheGroup *cg, mDNSu16 RDLength) argument
4910 CacheGroup *cg = (CacheGroup*)GetCacheEntity(m, mDNSNULL); local
6583 CacheGroup *cg; local
7103 CacheGroup *cg = CacheGroupForRecord(m, slot, pktrr); local
7392 CacheGroup *cg = CacheGroupForName(m, slot, pktq.qnamehash, &pktq.qname); local
7928 CreateNewCacheEntry(mDNS *const m, const mDNSu32 slot, CacheGroup *cg, mDNSs32 delay, mDNSBool Add, const mDNSAddr *sourceAddress) argument
8025 CacheGroup *cg = CacheGroupForName(m, slot, q->qnamehash, &q->qname); local
8239 CacheGroup *cg = CacheGroupForName(m, slot, q.qnamehash, &q.qname); local
8496 mDNSCoreReceiveCacheCheck(mDNS *const m, const DNSMessage *const response, uDNS_LLQType LLQType, const mDNSu32 slot, CacheGroup *cg, DNSQuestion *unicastQuestion, CacheRecord ***cfp, CacheRecord **NSECCachePtr, mDNSInterfaceID InterfaceID) argument
8677 CacheGroup *cg; local
8812 CacheGroup *cg = CacheGroupForName(m, slot, q.qnamehash, &q.qname); local
9173 CacheGroup *cg = CacheGroupForRecord(m, slot, &m->rec.r.resrec); local
9266 const CacheGroup *cg = CacheGroupForRecord(m, slot, &r1->resrec); local
11088 CacheGroup *cg; local
11804 CacheGroup *cg = CacheGroupForName(m, slot, question->qnamehash, &question->qname); local
12016 CacheGroup *const cg = CacheGroupForName(m, slot, question->qnamehash, &question->qname); local
13062 CacheGroup *cg; local
13133 CacheGroup *cg; local
14498 CacheGroup *const cg = CacheGroupForName(m, slot, q->qnamehash, &q->qname); local
14534 CacheGroup *const cg = CacheGroupForName(m, slot, q->qnamehash, &q->qname); local
14558 CacheGroup *const cg = CacheGroupForName(m, slot, q->qnamehash, &q->qname); local
14639 CacheGroup *cg; local
15126 CacheGroup *cg = m->rrcache_hash[slot]; local
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/quotacheck/
H A Dquotacheck.c430 int cg, i; local
507 for (cg = 0; cg < sblock.fs_ncg; cg++) {
/illumos-gate/usr/src/cmd/fs.d/ufs/fstyp/
H A Dfstyp.c76 struct cg cg; member in union:fstyp_ufs::__anon556
84 #define acg cgun.cg
536 struct cg *cgp;
545 (void) fprintf(fout, gettext("dumpfs: error reading cg\n"));
548 cgp = (struct cg *)&h->acg;
/illumos-gate/usr/src/uts/common/sys/fs/
H A Dufs_trans.h303 #define TRANS_SI(ufsvfsp, fs, cg) \
310 ((caddr_t)&fs->fs_cs(fs, cg) - \
313 ufs_trans_push_si, cg)
H A Dufs_fs.h81 * The beginning of cylinder group cg in fs, is given by
82 * the ``cgbase(fs, cg)'' macro.
137 * thus changes to (struct cg) must keep its size within MINBSIZE.
244 daddr32_t fs_dblkno; /* offset of first data after cg */
326 int32_t fs_cgrotor; /* last cg searched */
437 struct cg { struct
442 short cg_ncyl; /* number of cyl's this cg */
443 short cg_niblk; /* number of inode blocks this cg */
444 int32_t cg_ndblk; /* number of data blocks this cg */
506 short cg_ncyl; /* number of cyl's this cg */
[all...]
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/
H A Dfsck.h93 struct cg *b_cg; /* cylinder group */
/illumos-gate/usr/src/uts/common/sys/
H A Dbuf.h91 struct cg *b_cg; /* UFS cylinder group block */
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfs.h63 * The beginning of cylinder group cg in fs, is given by
64 * the ``cgbase(fs, cg)'' macro.
108 * thus changes to (struct cg) must keep its size within MINBSIZE.
153 mach_daddr_t fs_dblkno; /* offset of first data after cg */
215 int fs_cgrotor; /* last cg searched */
274 struct cg struct
276 int xxx1; /* struct cg *cg_link; */
280 short cg_ncyl; /* number of cyl's this cg */
281 short cg_niblk; /* number of inode blocks this cg */
282 int cg_ndblk; /* number of data blocks this cg */
[all...]
/illumos-gate/usr/src/cmd/backup/dump/
H A Ddumpmain.c841 struct cg *cgp =
842 (struct cg *)xcalloc((uint_t)sblock->fs_cgsize, 1);
/illumos-gate/usr/src/tools/onbld/Scm/
H A DBackup.py239 cg = self.ws.repo.changegroup(out, 'bundle')
240 changegroup.writebundle(cg, self.bu.backupfile('bundle'), 'HG10BZ')
/illumos-gate/usr/src/cmd/fs.d/ufs/mkfs/
H A Dmkfs.c269 * cylinder group and the (struct cg) size.
272 /* base cg */ (sizeof (struct cg) + \
448 struct cg cg; member in union:cgun
452 #define acg cgun.cg
1348 maxcpg = (bsize - sizeof (struct cg) -
1651 * important: only 1 FS block is allocated for the cg struct (fragment
1697 * Make sure the cg struct fits within the file system block.
1849 * Cut down on cylinders per group, until the cg struc
[all...]

Completed in 442 milliseconds

12