| /illumos-gate/usr/src/test/zfs-tests/cmd/rm_lnkcnt_zero_file/ |
| H A D | rm_lnkcnt_zero_file.c | 100 writer(void *a) function 136 (void) pthread_create(&tid, NULL, writer, (void *) &fd);
|
| /illumos-gate/usr/src/uts/common/os/ |
| H A D | rwstlock.c | 64 int writer; local 80 writer = 1; 83 writer = 0; 93 writer, readers); 107 writer = 1; 110 writer = 0; 123 writer, readers);
|
| /illumos-gate/usr/src/lib/libnisdb/ |
| H A D | nis_hashitem.h | 48 uint32_t writer; member in struct:__nis_item_item
|
| H A D | nisdb_rw.h | 155 uint32_t writer_count; /* Number of writer threads [0, 1] */ 156 __nisdb_rl_t writer; /* Writer record */ member in struct:__anon3659
|
| /illumos-gate/usr/src/lib/libc/port/threads/ |
| H A D | rwlock.c | 175 * Check if a writer version of the lock is held by the current thread. 323 * Attempt to acquire a writer lock. Return true on success. 348 * Attempt to release a writer lock. Return true on success. 378 uint32_t writer; local 396 if (readers & URW_WRITE_LOCKED) /* drop the writer lock */ 416 writer = 0; /* no current writer */ 421 * a writer. If the highest priority thread on the queue is a 422 * writer, stop there and wake it up. 440 if (writer ! [all...] |
| /illumos-gate/usr/src/uts/common/io/audio/impl/ |
| H A D | audio_sun.c | 667 boolean_t writer; local 707 writer = B_TRUE; 710 writer = (c == proc->p_writer); 720 if (writer && CHANGED(npr, opr, sample_rate)) { 727 if (writer && CHANGED(npr, opr, channels)) { 733 if (writer &&
|
| /illumos-gate/usr/src/uts/common/vm/ |
| H A D | page_lock.c | 249 * With the addition of reader-writer lock semantics to page_lock_es, 250 * callers wanting an exclusive (writer) lock may prevent shared-lock 286 * writer thread(s) by giving priority to writers over readers. 360 * if the caller wants a writer lock (but did not 362 * writer that wants exclusive access, return failure 366 /* no reader/writer lock held */ 547 * The caller wants a writer lock. We try for it only if 553 /* no reader/writer lock held */ 1021 memsegs_trylock(int writer) argument 1023 return (rw_tryenter(&memsegslock, writer 1027 memsegs_lock(int writer) argument 1034 memsegs_unlock(int writer) argument [all...] |
| H A D | seg_spt.c | 2858 int writer; local 2895 writer = AS_WRITE_HELD(seg->s_as); 2918 AS_LOCK_ENTER(seg->s_as, writer ? RW_WRITER : RW_READER);
|
| H A D | vm_as.c | 736 * 0. We don't drop as writer lock so our 1077 int error = 0, writer = 0; local 1096 * the as lock as a writer so the segment driver can change 1099 * locking as a writer. Since these opeartions should be rare 1100 * want to only lock as a writer when necessary. 1102 if (writer || avl_numnodes(&as->a_wpage) != 0) { 1138 writer = 1; 1144 * Make sure we have a_lock as writer. 1146 if (writer == 0) { 1148 writer [all...] |
| /illumos-gate/usr/src/cmd/isns/isnsadm/ |
| H A D | isnsadm.c | 1421 xmlTextWriterPtr writer; local 1429 if ((writer = xmlNewTextWriterMemory(xbuf, 0)) == NULL) { 1433 if (xmlTextWriterStartDocument(writer, "1.0", NULL, NULL) < 0) { 1438 if (xmlTextWriterStartElement(writer, (xmlChar *)ISNSREQUEST) < 0) { 1442 if ((xmlTextWriterWriteAttribute(writer, 1448 if (xmlTextWriterStartElement(writer, (xmlChar *)DELETE) < 0) { 1456 if (xmlTextWriterStartElement(writer, 1462 if ((xmlTextWriterWriteAttribute(writer, 1468 if (xmlTextWriterEndElement(writer) < 0) { 1476 if (xmlTextWriterStartElement(writer, 1597 xmlTextWriterPtr writer; local 1733 xmlTextWriterPtr writer; local 1867 xmlTextWriterPtr writer; local 2036 xmlTextWriterPtr writer; local 2257 xmlTextWriterPtr writer; local 2357 xmlTextWriterPtr writer; local [all...] |
| /illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ |
| H A D | rlogin.c | 205 static void writer(void); 829 writer(); 941 * writer: write to remote: 0 -> line. 947 writer(void) function
|
| /illumos-gate/usr/src/cmd/backup/dump/ |
| H A D | dumptape.c | 56 * the slaves. The tape writer passes out the current inode, 127 static int *readmissp; /* number of times writer was idle */ 143 static int writer = -1; /* fd of tape writer */ variable 144 static pid_t writepid; /* pid of tape writer */ 576 writer = cmd[1]; 580 * Child (writer) process 698 /* no locking as we assume only one reader and one writer active */ 768 * when it was being dumped. The tape writer process sends checkpoint 882 (void) kill(writepid, SIGUSR1); /* tell writer t [all...] |
| /illumos-gate/usr/src/uts/sun4u/os/ |
| H A D | cpr_impl.c | 152 tlb_rw_t writer; member in struct:cpr_trans_info 368 (*ctip->writer)((uint_t)index, &clr.tte, &clr.va_tag); 421 cti.writer = dtlb_wr_entry; 426 cti.writer = itlb_wr_entry; 1721 cti.writer = NULL;
|
| /illumos-gate/usr/src/lib/libdevinfo/ |
| H A D | devinfo_devlink.c | 3063 * If the handle is IS_RDWR then we lock as writer to "update" database, 3080 int writer = HDL_RDWR(hdp); local 3089 writer ? "update" : "snapshot"); 3095 (writer ? (O_RDWR|O_CREAT) : O_RDONLY), DB_LOCK_PERMS)) < 0) { 3102 * /dev walk. If we get a failure as a writer we want the 3105 if ((errno == ENOENT) && !writer) { 3110 writer ? "update" : "snapshot"); 3118 "WALK\n", writer ? "update" : "snapshot", 3124 writer ? "update" : "snapshot", strerror(errno)); 3130 lock.l_type = writer 3163 int writer = HDL_RDWR(hdp); local [all...] |
| /illumos-gate/usr/src/uts/common/fs/zfs/ |
| H A D | zfs_ioctl.c | 1424 * If 'writer' is set, the z_teardown_lock will be held for RW_WRITER, 1428 zfsvfs_hold(const char *name, void *tag, zfsvfs_t **zfvp, boolean_t writer) argument 1435 rrm_enter(&(*zfvp)->z_teardown_lock, (writer) ? RW_WRITER :
|