Displaying 3 results from an estimated 3 matches for "inc_ref".
Did you mean:
func_ref
2007 Apr 13
0
[952] branches/wxruby2/wxwidgets_282/doc/textile/gridcellattr.txtl: Doc fix from Wx 2.8
...*clone*()
</span><span class="cx">
</span><span class="cx"> Creates a new copy of this object.
</span><span class="cx">
</span><ins>+
</ins><span class="cx"> h3(#GridCellAttr_incref). GridCellAttr#inc_ref
</span><span class="cx">
</span><span class="cx"> *inc_ref*()
</span><span class="lines">@@ -64,6 +65,7 @@
</span><span class="cx"> calling DecRef() once will delete it. Calling IncRef() allows to lock
</s...
2024 May 30
0
[RFC PATCH 7/8] rust: add firmware abstractions
...the reference count of this device, such that it can't get freed for
the time being.
This is a 1:1 representation of that and conceptually identical.
>
> +// SAFETY: Instances of `Device` are always ref-counted.
> +unsafe impl crate::types::AlwaysRefCounted for Device {
> + fn inc_ref(&self) {
> + // SAFETY: The existence of a shared reference guarantees that the refcount is nonzero.
> + unsafe { bindings::get_device(self.as_raw()) };
> + }
> +
> + unsafe fn dec_ref(obj: ptr::NonNull<Self>) {
> + // SAFETY: The safety requir...
2013 Mar 15
0
[PATCH] Btrfs-progs: add skinny metadata support to progs V3
...extent_info(NULL, root, bytenr, *level - 1,
+ 1, &refs, NULL);
if (ret < 0)
refs = 0;
@@ -2224,7 +2226,7 @@ static int add_extent_rec(struct cache_tree *extent_cache,
struct btrfs_key *parent_key,
u64 start, u64 nr, u64 extent_item_refs,
int is_root, int inc_ref, int set_checked,
- u64 max_size)
+ int metadata, u64 max_size)
{
struct extent_record *rec;
struct cache_extent *cache;
@@ -2277,6 +2279,7 @@ static int add_extent_rec(struct cache_tree *extent_cache,
rec->nr = max(nr, max_size);
rec->content_checked = 0;
rec->owner_ref...