Home
last modified time | relevance | path

Searched refs:writers (Results 1 – 25 of 67) sorted by relevance

123

/linux/fs/btrfs/
H A Dlocking.c317 atomic_set(&lock->writers, 0); in btrfs_drew_lock_init()
328 atomic_inc(&lock->writers); in btrfs_drew_try_write_lock()
355 if (atomic_dec_and_test(&lock->writers)) in btrfs_drew_write_unlock()
371 wait_event(lock->pending_readers, atomic_read(&lock->writers) == 0); in btrfs_drew_read_lock()
H A Dlocking.h225 atomic_t writers; member
/linux/fs/
H A Dpipe.c233 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 Dsplice.c527 if (!pipe->writers) in splice_from_pipe_next()
823 if (!pipe->writers) in splice_to_socket()
1663 if (!pipe->writers) in ipipe_prep()
1761 if (pipe_empty(i_head, i_tail) && !ipipe->writers) in splice_pipe_to_pipe()
/linux/Documentation/driver-api/dmaengine/
H A Dindex.rst12 driver writers.
22 This book is a guide to device driver writers on how to use the Slave-DMA
/linux/drivers/md/dm-vdo/indexer/
H A Dindex-layout.c1050 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 Dvolume-index.h187 struct buffered_writer **writers,
/linux/Documentation/userspace-api/media/v4l/
H A Dcompat.rst12 writers to port or update their code.
/linux/fs/smb/client/
H A Dmisc.c617 if (!cinode->writers) in cifs_get_writer()
619 cinode->writers++; in cifs_get_writer()
622 cinode->writers--; in cifs_get_writer()
623 if (cinode->writers == 0) { in cifs_get_writer()
637 cinode->writers--; in cifs_put_writer()
638 if (cinode->writers == 0) { in cifs_put_writer()
/linux/drivers/media/test-drivers/
H A DKconfig33 DVB device driver writers and developers working on userspace
/linux/Documentation/driver-api/media/
H A Ddtv-common.rst46 Two or more writers must be locked against each other.
/linux/Documentation/timers/
H A Dhpet.rst17 role. Many x86 BIOS writers don't route HPET interrupts at all, which
/linux/drivers/mtd/ubi/
H A Dcdev.c50 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/include/media/
H A Ddvbdev.h174 int writers; member
/linux/Documentation/locking/
H A Dlocktorture.rst35 ownership (writers). The default value is twice the number
42 both readers and writers be the amount of online CPUs.
H A Dlockdep-design.rst404 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/linux/
H A Dpipe_fs_i.h94 unsigned int writers; member
/linux/Documentation/driver-api/
H A Dio_ordering.rst6 platforms, driver writers are responsible for ensuring that I/O writes to
H A Dsync_file.rst7 This document serves as a guide for device drivers writers on what the
/linux/Documentation/trace/
H A Dring-buffer-design.rst80 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/drivers/media/firewire/
H A Dfiredtv-ci.c225 .writers = 1,
/linux/Documentation/driver-api/serial/
H A Ddriver.rst32 Driver writers are recommended to use this function rather than implementing
/linux/Documentation/scsi/
H A Dscsi-generic.rst15 Thus sg is used for scanners, CD writers and reading audio CDs digitally
/linux/drivers/media/pci/ngene/
H A Dngene-dvb.c110 .writers = 1,
/linux/net/sunrpc/
H A Dcache.c405 atomic_set(&cd->writers, 0); in sunrpc_init_cache_detail()
1053 atomic_inc(&cd->writers); in cache_open()
1084 atomic_dec(&cd->writers); in cache_release()
1192 if (atomic_read(&detail->writers)) in cache_listeners_exist()

123