| /linux/fs/btrfs/ |
| H A D | locking.c | 318 atomic_set(&lock->writers, 0); in btrfs_drew_lock_init() 329 atomic_inc(&lock->writers); in btrfs_drew_try_write_lock() 356 if (atomic_dec_and_test(&lock->writers)) in btrfs_drew_write_unlock() 372 wait_event(lock->pending_readers, atomic_read(&lock->writers) == 0); in btrfs_drew_read_lock()
|
| H A D | locking.h | 225 atomic_t writers; member
|
| /linux/fs/ |
| H A D | pipe.c | 233 unsigned int writers = READ_ONCE(pipe->writers); in pipe_readable() local 235 return !pipe_empty(idx.head, idx.tail) || !writers; in pipe_readable() 370 if (!pipe->writers) in anon_pipe_read() 691 if (!pipe->writers && filp->f_pipe != pipe->w_counter) in pipe_poll() 733 pipe->writers--; in pipe_release() 736 if (!pipe->readers != !pipe->writers) { in pipe_release() 902 pipe->readers = pipe->writers = 1; in get_pipe_inode() 1170 if (!is_pipe && !pipe->writers) { in fifo_open() 1193 if (!pipe->writers++) in fifo_open() 1211 pipe->writers++; in fifo_open() [all …]
|
| H A D | splice.c | 526 if (!pipe->writers) in splice_from_pipe_next() 821 if (!pipe->writers) in splice_to_socket() 1661 if (!pipe->writers) in ipipe_prep() 1759 if (pipe_empty(i_head, i_tail) && !ipipe->writers) in splice_pipe_to_pipe()
|
| /linux/Documentation/driver-api/dmaengine/ |
| H A D | index.rst | 12 driver writers. 22 This book is a guide to device driver writers on how to use the Slave-DMA
|
| /linux/drivers/mtd/ubi/ |
| H A D | kapi.c | 167 if (vol->exclusive || vol->writers > 0) in ubi_open_volume() 169 vol->writers += 1; in ubi_open_volume() 173 if (vol->exclusive || vol->writers || vol->readers || in ubi_open_volume() 360 vol->writers -= 1; in ubi_close_volume()
|
| H A D | cdev.c | 50 users = vol->readers + vol->writers + vol->exclusive + vol->metaonly; in get_exclusive() 56 vol->readers = vol->writers = vol->metaonly = 0; in get_exclusive() 76 ubi_assert(vol->readers == 0 && vol->writers == 0 && vol->metaonly == 0); in revoke_exclusive() 82 vol->writers = 1; in revoke_exclusive()
|
| /linux/drivers/md/dm-vdo/indexer/ |
| H A D | index-layout.c | 1050 struct buffered_writer *writers[MAX_ZONES]; in uds_save_index_state() local 1062 result = open_region_writer(layout, &isl->open_chapter, &writers[0]); in uds_save_index_state() 1068 result = uds_save_open_chapter(index, writers[0]); in uds_save_index_state() 1069 uds_free_buffered_writer(writers[0]); in uds_save_index_state() 1077 &writers[zone]); in uds_save_index_state() 1080 uds_free_buffered_writer(writers[zone - 1]); in uds_save_index_state() 1087 result = uds_save_volume_index(index->volume_index, writers, index->zone_count); in uds_save_index_state() 1089 uds_free_buffered_writer(writers[zone]); in uds_save_index_state() 1095 result = open_region_writer(layout, &isl->index_page_map, &writers[0]); in uds_save_index_state() 1101 result = uds_write_index_page_map(index->volume->index_page_map, writers[0]); in uds_save_index_state() [all …]
|
| H A D | volume-index.h | 187 struct buffered_writer **writers,
|
| H A D | volume-index.c | 1108 struct buffered_writer **writers, unsigned int writer_count) in uds_save_volume_index() argument 1114 result = start_saving_volume_index(volume_index, zone, writers[zone]); in uds_save_volume_index() 1122 result = uds_write_guard_delta_list(writers[zone]); in uds_save_volume_index() 1126 result = uds_flush_buffered_writer(writers[zone]); in uds_save_volume_index()
|
| /linux/fs/smb/client/ |
| H A D | misc.c | 332 if (!cinode->writers) in cifs_get_writer() 334 cinode->writers++; in cifs_get_writer() 337 cinode->writers--; in cifs_get_writer() 338 if (cinode->writers == 0) { in cifs_get_writer() 352 cinode->writers--; in cifs_put_writer() 353 if (cinode->writers == 0) { in cifs_put_writer()
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | compat.rst | 12 writers to port or update their code.
|
| /linux/drivers/media/test-drivers/ |
| H A D | Kconfig | 33 DVB device driver writers and developers working on userspace
|
| /linux/Documentation/driver-api/media/ |
| H A D | dtv-common.rst | 46 Two or more writers must be locked against each other.
|
| /linux/Documentation/timers/ |
| H A D | hpet.rst | 17 role. Many x86 BIOS writers don't route HPET interrupts at all, which
|
| /linux/Documentation/locking/ |
| H A D | locktorture.rst | 35 ownership (writers). The default value is twice the number 42 both readers and writers be the amount of online CPUs.
|
| H A D | lockdep-design.rst | 404 There are three types of lockers: writers (i.e. exclusive lockers, like 409 W or E: stands for writers (exclusive lockers). 413 N: stands for writers and non-recursive readers, as both are not recursive. 442 Block conditions on readers/writers of the same lock instance: 446 1. Writers block other writers. 447 2. Readers block writers. 465 (W: writers, r: non-recursive readers, R: recursive readers) 528 we can combine writers and non-recursive readers for L2 (as they get blocked by the
|
| /linux/include/media/ |
| H A D | dvbdev.h | 174 int writers; member
|
| /linux/include/linux/ |
| H A D | pipe_fs_i.h | 94 unsigned int writers; member
|
| /linux/Documentation/trace/ |
| H A D | ring-buffer-design.rst | 80 No two writers can write at the same time (on the same per-cpu buffer), 83 algorithm. The writers act like a "stack". The way interrupts works 484 the readers. But the writers will never take a lock to write to the 707 Only writers move the tail page. This must be done atomically to protect 708 against nested writers:: 957 writers means that it only needs to check this after setting the HEAD page::
|
| /linux/Documentation/driver-api/ |
| H A D | io_ordering.rst | 6 platforms, driver writers are responsible for ensuring that I/O writes to
|
| /linux/drivers/media/dvb-core/ |
| H A D | dvbdev.c | 145 if (!dvbdev->writers) in dvb_generic_open() 147 dvbdev->writers--; in dvb_generic_open() 165 dvbdev->writers++; in dvb_generic_release()
|
| /linux/drivers/media/firewire/ |
| H A D | firedtv-ci.c | 225 .writers = 1,
|
| /linux/include/linux/sunrpc/ |
| H A D | cache.h | 117 atomic_t writers; /* how many time is /channel open */ member
|
| /linux/Documentation/driver-api/serial/ |
| H A D | driver.rst | 32 Driver writers are recommended to use this function rather than implementing
|