/linux/fs/btrfs/ |
A D | locking.c | 218 ret = percpu_counter_init(&lock->writers, 0, GFP_KERNEL); in btrfs_drew_lock_init() 231 percpu_counter_destroy(&lock->writers); in btrfs_drew_lock_destroy() 240 percpu_counter_inc(&lock->writers); in btrfs_drew_try_write_lock() 263 percpu_counter_dec(&lock->writers); in btrfs_drew_write_unlock() 280 percpu_counter_sum(&lock->writers) == 0); in btrfs_drew_read_lock()
|
A D | subpage.c | 154 atomic_set(&ret->writers, 0); in btrfs_alloc_subpage() 283 ret = atomic_add_return(nbits, &subpage->writers); in btrfs_subpage_start_writer() 302 if (atomic_read(&subpage->writers) == 0) in btrfs_subpage_end_and_test_writer() 305 ASSERT(atomic_read(&subpage->writers) >= nbits); in btrfs_subpage_end_and_test_writer() 306 return atomic_sub_and_test(nbits, &subpage->writers); in btrfs_subpage_end_and_test_writer() 739 if (atomic_read(&subpage->writers)) in btrfs_page_unlock_writer()
|
A D | locking.h | 121 struct percpu_counter writers; member
|
A D | subpage.h | 67 atomic_t writers; member
|
/linux/fs/ |
A D | pipe.c | 224 unsigned int writers = READ_ONCE(pipe->writers); in pipe_readable() local 226 return !pipe_empty(head, tail) || !writers; in pipe_readable() 339 if (!pipe->writers) in pipe_read() 721 pipe->writers--; in pipe_release() 724 if (!pipe->readers != !pipe->writers) { in pipe_release() 883 pipe->readers = pipe->writers = 1; in get_pipe_inode() 1138 if (!is_pipe && !pipe->writers) { in fifo_open() 1161 if (!pipe->writers++) in fifo_open() 1179 pipe->writers++; in fifo_open() 1182 if (pipe->readers == 1 || pipe->writers == 1) in fifo_open() [all …]
|
A D | splice.c | 482 if (!pipe->writers) in splice_from_pipe_next() 1382 if (!pipe->writers) in ipipe_prep() 1483 if (pipe_empty(i_head, i_tail) && !ipipe->writers) in splice_pipe_to_pipe()
|
/linux/Documentation/driver-api/dmaengine/ |
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/ |
A D | kapi.c | 166 if (vol->exclusive || vol->writers > 0) in ubi_open_volume() 168 vol->writers += 1; in ubi_open_volume() 172 if (vol->exclusive || vol->writers || vol->readers || in ubi_open_volume() 339 vol->writers -= 1; in ubi_close_volume()
|
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/Documentation/userspace-api/media/v4l/ |
A D | compat.rst | 11 writers to port or update their code.
|
/linux/fs/cifs/ |
A D | misc.c | 563 if (!cinode->writers) in cifs_get_writer() 565 cinode->writers++; in cifs_get_writer() 568 cinode->writers--; in cifs_get_writer() 569 if (cinode->writers == 0) { in cifs_get_writer() 583 cinode->writers--; in cifs_put_writer() 584 if (cinode->writers == 0) { in cifs_put_writer()
|
/linux/drivers/media/test-drivers/ |
A D | Kconfig | 35 DVB device driver writers and developers working on userspace
|
/linux/include/linux/ |
A D | pipe_fs_i.h | 70 unsigned int writers; member
|
/linux/Documentation/driver-api/media/ |
A D | dtv-common.rst | 55 Two or more writers must be locked against each other.
|
/linux/Documentation/timers/ |
A D | hpet.rst | 17 role. Many x86 BIOS writers don't route HPET interrupts at all, which
|
/linux/include/media/ |
A D | dvbdev.h | 168 int writers; member
|
/linux/Documentation/locking/ |
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.
|
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/Documentation/trace/ |
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/ |
A D | io_ordering.rst | 6 platforms, driver writers are responsible for ensuring that I/O writes to
|
/linux/drivers/media/dvb-core/ |
A D | dvbdev.c | 149 if (!dvbdev->writers) in dvb_generic_open() 151 dvbdev->writers--; in dvb_generic_open() 170 dvbdev->writers++; in dvb_generic_release()
|
/linux/drivers/media/firewire/ |
A D | firedtv-ci.c | 225 .writers = 1,
|
/linux/include/linux/sunrpc/ |
A D | cache.h | 113 atomic_t writers; /* how many time is /channel open */ member
|
/linux/drivers/media/pci/ngene/ |
A D | ngene-dvb.c | 110 .writers = 1,
|
/linux/net/sunrpc/ |
A D | cache.c | 390 atomic_set(&cd->writers, 0); in sunrpc_init_cache_detail() 1028 atomic_inc(&cd->writers); in cache_open() 1059 atomic_dec(&cd->writers); in cache_release() 1168 if (atomic_read(&detail->writers)) in cache_listeners_exist()
|