/kernel/linux/linux-6.6/block/ |
H A D | holder.c | 14 struct bd_holder_disk *holder; in bd_find_holder_disk() local 16 list_for_each_entry(holder, &disk->slave_bdevs, list) in bd_find_holder_disk() 17 if (holder->holder_dir == bdev->bd_holder_dir) in bd_find_holder_disk() 18 return holder; in bd_find_holder_disk() 41 * - from "slaves" directory of the holder @disk to the claimed @bdev 42 * - from "holders" directory of the @bdev to the holder @disk 62 struct bd_holder_disk *holder; in bd_link_disk_holder() local 86 holder = bd_find_holder_disk(bdev, disk); in bd_link_disk_holder() 87 if (holder) { in bd_link_disk_holder() 89 holder in bd_link_disk_holder() 138 struct bd_holder_disk *holder; bd_unlink_disk_holder() local [all...] |
H A D | bdev.c | 452 * @holder: holder trying to claim @bdev 453 * @hops: holder ops 455 * Test whether @bdev can be claimed by @holder. 460 static bool bd_may_claim(struct block_device *bdev, void *holder, in bd_may_claim() argument 469 * The same holder can always re-claim. in bd_may_claim() 471 if (bdev->bd_holder == holder) { in bd_may_claim() 480 * If the whole devices holder is set to bd_may_claim, a partition on in bd_may_claim() 492 * @holder: holder tryin 502 bd_prepare_to_claim(struct block_device *bdev, void *holder, const struct blk_holder_ops *hops) bd_prepare_to_claim() argument 536 bd_clear_claiming(struct block_device *whole, void *holder) bd_clear_claiming() argument 554 bd_finish_claiming(struct block_device *bdev, void *holder, const struct blk_holder_ops *hops) bd_finish_claiming() argument 585 bd_abort_claiming(struct block_device *bdev, void *holder) bd_abort_claiming() argument 588 bd_clear_claiming(bdev_whole(bdev), holder); bd_abort_claiming() local 593 bd_end_claim(struct block_device *bdev, void *holder) bd_end_claim() argument 754 blkdev_get_by_dev(dev_t dev, blk_mode_t mode, void *holder, const struct blk_holder_ops *hops) blkdev_get_by_dev() argument 834 bdev_open_by_dev(dev_t dev, blk_mode_t mode, void *holder, const struct blk_holder_ops *hops) bdev_open_by_dev() argument 870 blkdev_get_by_path(const char *path, blk_mode_t mode, void *holder, const struct blk_holder_ops *hops) blkdev_get_by_path() argument 891 bdev_open_by_path(const char *path, blk_mode_t mode, void *holder, const struct blk_holder_ops *hops) bdev_open_by_path() argument 913 blkdev_put(struct block_device *bdev, void *holder) blkdev_put() argument [all...] |
H A D | Makefile | 42 obj-$(CONFIG_BLOCK_HOLDER_DEPRECATED) += holder.o
|
/kernel/linux/linux-5.10/fs/ |
H A D | block_dev.c | 1042 * @holder: holder trying to claim @bdev 1044 * Test whether @bdev can be claimed by @holder. 1053 void *holder) in bd_may_claim() 1055 if (bdev->bd_holder == holder) in bd_may_claim() 1056 return true; /* already a holder */ in bd_may_claim() 1074 * @holder: holder trying to claim @bdev 1077 * holder and waits if another claiming is in progress. return, the caller 1084 void *holder) in bd_prepare_to_claim() 1052 bd_may_claim(struct block_device *bdev, struct block_device *whole, void *holder) bd_may_claim() argument 1083 bd_prepare_to_claim(struct block_device *bdev, struct block_device *whole, void *holder) bd_prepare_to_claim() argument 1134 bd_clear_claiming(struct block_device *whole, void *holder) bd_clear_claiming() argument 1152 bd_finish_claiming(struct block_device *bdev, struct block_device *whole, void *holder) bd_finish_claiming() argument 1179 bd_abort_claiming(struct block_device *bdev, struct block_device *whole, void *holder) bd_abort_claiming() argument 1198 struct bd_holder_disk *holder; bd_find_holder_disk() local 1246 struct bd_holder_disk *holder; bd_link_disk_holder() local 1311 struct bd_holder_disk *holder; bd_unlink_disk_holder() local 1467 __blkdev_get(struct block_device *bdev, fmode_t mode, void *holder, int for_part) __blkdev_get() argument 1646 blkdev_get(struct block_device *bdev, fmode_t mode, void *holder) blkdev_get() argument 1685 blkdev_get_by_path(const char *path, fmode_t mode, void *holder) blkdev_get_by_path() argument 1730 blkdev_get_by_dev(dev_t dev, fmode_t mode, void *holder) blkdev_get_by_dev() argument [all...] |
/kernel/linux/linux-5.10/fs/pstore/ |
H A D | blk.c | 222 * @holder: Exclusive holder identifier 229 static struct block_device *psblk_get_bdev(void *holder, in psblk_get_bdev() argument 244 if (holder) in psblk_get_bdev() 246 bdev = blkdev_get_by_path(blkdev, mode, holder); in psblk_get_bdev() 253 bdev = blkdev_get_by_dev(devt, mode, holder); in psblk_get_bdev() 274 static void psblk_put_bdev(struct block_device *bdev, void *holder) in psblk_put_bdev() argument 283 if (holder) in psblk_put_bdev() 377 void *holder = blkdev; in __register_pstore_blk() local 384 bdev = psblk_get_bdev(holder, in __register_pstore_blk() 456 void *holder = blkdev; __unregister_pstore_blk() local [all...] |
/kernel/linux/linux-6.6/tools/bpf/bpftool/ |
H A D | prog.c | 92 struct bpf_prog_info holder = {}; in prep_prog_info() local 97 holder.jited_prog_len = info->jited_prog_len; in prep_prog_info() 100 holder.xlated_prog_len = info->xlated_prog_len; in prep_prog_info() 104 holder.nr_jited_ksyms = info->nr_jited_ksyms; in prep_prog_info() 107 holder.nr_jited_func_lens = info->nr_jited_func_lens; in prep_prog_info() 110 holder.nr_func_info = info->nr_func_info; in prep_prog_info() 111 holder.func_info_rec_size = info->func_info_rec_size; in prep_prog_info() 114 holder.nr_line_info = info->nr_line_info; in prep_prog_info() 115 holder.line_info_rec_size = info->line_info_rec_size; in prep_prog_info() 118 holder in prep_prog_info() [all...] |
/kernel/linux/linux-6.6/drivers/dax/ |
H A D | super.c | 25 * @holder_data: holder of a dax_device: could be filesystem or mapped device 26 * @holder_ops: operations for the inner holder 78 * @holder: filesystem or mapped device inside the dax_device 79 * @ops: operations for the inner holder 82 void *holder, const struct dax_holder_operations *ops) in fs_dax_get_by_bdev() 102 else if (holder) { in fs_dax_get_by_bdev() 103 if (!cmpxchg(&dax_dev->holder_data, NULL, holder)) in fs_dax_get_by_bdev() 114 void fs_put_dax(struct dax_device *dax_dev, void *holder) in fs_put_dax() argument 116 if (dax_dev && holder && in fs_put_dax() 117 cmpxchg(&dax_dev->holder_data, holder, NUL in fs_put_dax() 81 fs_dax_get_by_bdev(struct block_device *bdev, u64 *start_off, void *holder, const struct dax_holder_operations *ops) fs_dax_get_by_bdev() argument [all...] |
/kernel/linux/linux-5.10/drivers/md/ |
H A D | dm-bio-prison-v1.c | 77 struct bio *holder, in __setup_new_cell() 81 cell->holder = holder; in __setup_new_cell() 190 if (cell->holder) in __cell_release() 191 bio_list_add(inmates, cell->holder); in __cell_release() 207 * Sometimes we don't want the holder, just the additional bios. 265 cell->holder = bio_list_pop(&cell->bios); in __promote_or_release() 76 __setup_new_cell(struct dm_cell_key *key, struct bio *holder, struct dm_bio_prison_cell *cell) __setup_new_cell() argument
|
H A D | dm-bio-prison-v1.h | 45 struct bio *holder; member 79 * Returns 1 if the cell was already held, 0 if @inmate is the new holder. 106 * want to promote one of them to be the new holder. There is a race here 111 * i) An inmate is promoted to be the holder of the cell (return value of 0).
|
H A D | dm-thin.c | 880 * This sends the bios in the cell, except the original holder, back 1027 inc_all_io_entry(tc->pool, m->cell->holder); in process_prepared_mapping() 1028 remap_and_issue(tc, m->cell->holder, m->data_block); in process_prepared_mapping() 1667 m->bio = virt_cell->holder; in process_discard_cell_no_passdown() 1738 struct bio *bio = virt_cell->holder; in process_discard_cell_passdown() 1942 struct bio *bio = cell->holder; in process_cell() 2069 __process_bio_read_only(tc, cell->holder, cell); in process_cell_read_only() 2230 BUG_ON(!lhs_cell->holder); in cmp_cells() 2231 BUG_ON(!rhs_cell->holder); in cmp_cells() 2233 if (lhs_cell->holder in cmp_cells() [all...] |
/kernel/linux/linux-6.6/drivers/md/ |
H A D | dm-bio-prison-v1.c | 88 struct bio *holder, in __setup_new_cell() 92 cell->holder = holder; in __setup_new_cell() 220 if (cell->holder) in __cell_release() 221 bio_list_add(inmates, cell->holder); in __cell_release() 239 * Sometimes we don't want the holder, just the additional bios. 299 cell->holder = bio_list_pop(&cell->bios); in __promote_or_release() 87 __setup_new_cell(struct dm_cell_key *key, struct bio *holder, struct dm_bio_prison_cell *cell) __setup_new_cell() argument
|
H A D | dm-bio-prison-v1.h | 56 struct bio *holder; member 95 * Returns 1 if the cell was already held, 0 if @inmate is the new holder. 122 * want to promote one of them to be the new holder. There is a race here 127 * i) An inmate is promoted to be the holder of the cell (return value of 0).
|
H A D | dm-thin.c | 880 * This sends the bios in the cell, except the original holder, back 1029 inc_all_io_entry(tc->pool, m->cell->holder); in process_prepared_mapping() 1030 remap_and_issue(tc, m->cell->holder, m->data_block); in process_prepared_mapping() 1662 m->bio = virt_cell->holder; in process_discard_cell_no_passdown() 1749 struct bio *bio = virt_cell->holder; in process_discard_cell_passdown() 1959 struct bio *bio = cell->holder; in process_cell() 2086 __process_bio_read_only(tc, cell->holder, cell); in process_cell_read_only() 2247 BUG_ON(!lhs_cell->holder); in cmp_cells() 2248 BUG_ON(!rhs_cell->holder); in cmp_cells() 2250 if (lhs_cell->holder in cmp_cells() [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | dax.h | 48 * notify_failure - notify memory failure into inner holder device 49 * @dax_dev: the dax device which contains the holder 135 void *holder, const struct dax_holder_operations *ops); 136 void fs_put_dax(struct dax_device *dax_dev, void *holder); 146 u64 *start_off, void *holder, in fs_dax_get_by_bdev() 151 static inline void fs_put_dax(struct dax_device *dax_dev, void *holder) in fs_put_dax() argument 145 fs_dax_get_by_bdev(struct block_device *bdev, u64 *start_off, void *holder, const struct dax_holder_operations *ops) fs_dax_get_by_bdev() argument
|
H A D | blkdev.h | 1484 void *holder; member 1487 struct block_device *blkdev_get_by_dev(dev_t dev, blk_mode_t mode, void *holder, 1490 void *holder, const struct blk_holder_ops *hops); 1491 struct bdev_handle *bdev_open_by_dev(dev_t dev, blk_mode_t mode, void *holder, 1494 void *holder, const struct blk_holder_ops *hops); 1495 int bd_prepare_to_claim(struct block_device *bdev, void *holder, 1497 void bd_abort_claiming(struct block_device *bdev, void *holder); 1498 void blkdev_put(struct block_device *bdev, void *holder);
|
/kernel/linux/linux-5.10/fs/notify/ |
H A D | fsnotify.h | 64 /* allocate and destroy and event holder to attach events to notification/access queues */ 66 extern void fsnotify_destroy_event_holder(struct fsnotify_event_holder *holder);
|
/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | volumes.h | 97 /* block device holder for blkdev_get/put */ 98 void *holder; member 613 blk_mode_t flags, void *holder); 632 struct block_device **bdev, void **holder);
|
H A D | volumes.c | 513 btrfs_get_bdev_and_sb(const char *device_path, blk_mode_t flags, void *holder, in btrfs_get_bdev_and_sb() argument 519 *bdev = blkdev_get_by_path(device_path, flags, holder, NULL); in btrfs_get_bdev_and_sb() 530 blkdev_put(*bdev, holder); in btrfs_get_bdev_and_sb() 537 blkdev_put(*bdev, holder); in btrfs_get_bdev_and_sb() 614 void *holder) in btrfs_open_one_device() 626 ret = btrfs_get_bdev_and_sb(device->name->str, flags, holder, 1, in btrfs_open_one_device() 665 device->holder = holder; in btrfs_open_one_device() 679 blkdev_put(bdev, holder); in btrfs_open_one_device() 1072 blkdev_put(device->bdev, device->holder); in __btrfs_free_extra_devids() 612 btrfs_open_one_device(struct btrfs_fs_devices *fs_devices, struct btrfs_device *device, blk_mode_t flags, void *holder) btrfs_open_one_device() argument 1221 open_fs_devices(struct btrfs_fs_devices *fs_devices, blk_mode_t flags, void *holder) open_fs_devices() argument 1269 btrfs_open_devices(struct btrfs_fs_devices *fs_devices, blk_mode_t flags, void *holder) btrfs_open_devices() argument 2088 btrfs_rm_device(struct btrfs_fs_info *fs_info, struct btrfs_dev_lookup_args *args, struct block_device **bdev, void **holder) btrfs_rm_device() argument [all...] |
/kernel/linux/linux-6.6/drivers/md/bcache/ |
H A D | super.c | 2451 void *holder; member 2461 if (register_bdev(args->sb, args->sb_disk, args->bdev, args->holder) in register_bdev_worker() 2482 if (register_cache(args->sb, args->sb_disk, args->bdev, args->holder)) in register_cache_worker() 2520 void *holder = NULL; in register_bcache() local 2564 holder = alloc_holder_object(sb); in register_bcache() 2565 if (!holder) { in register_bcache() 2571 /* Now reopen in exclusive mode with proper holder */ in register_bcache() 2573 holder, NULL); in register_bcache() 2614 args->holder = holder; in register_bcache() [all...] |
/kernel/linux/linux-5.10/drivers/ipack/carriers/ |
H A D | tpci200.h | 120 struct ipack_device *holder; member
|
/kernel/linux/linux-6.6/drivers/ipack/carriers/ |
H A D | tpci200.h | 118 struct ipack_device *holder; member
|
/kernel/liteos_m/arch/arm/cortex-m3/keil/ |
H A D | los_startup.s | 15 ; 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
H A D | los_dispatch.S | 15 ; 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
H A D | los_atomic.S | 14 ; 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | volumes.h | 435 fmode_t flags, void *holder); 437 fmode_t flags, void *holder);
|