0 cˆ ƒm Ü¿Ú îc Index of /FSS-BCZ/root/sys/devices/system/cpu/cpu3/node0/memory61

Index of /FSS-BCZ/root/sys/devices/system/cpu/cpu3/node0/memory61

 NameLast modifiedSizeDescription

 Parent Directory   -  
 node0/ 2026-10-21 14:32 -  
 power/ 2026-10-22 17:51 -  
 subsystem/ 2026-10-21 14:32 -  
 online 2026-10-22 17:51 4.0K 
 phys_device 2026-10-22 17:51 4.0K 
 phys_index 2026-10-22 17:51 4.0K 
 removable 2026-10-22 17:51 4.0K 
 state 2026-10-22 17:51 4.0K 
 uevent 2026-10-22 17:51 4.0K 
 valid_zones 2026-10-22 17:51 4.0K 

eˆÒÖ ƒd-·Ó¿Ú Se/* SPDX-License-Identifier: GPL-2.0-only */ /* * kref.h - library routines for handling generic reference counted objects * * Copyright (C) 2004 Greg Kroah-Hartman * Copyright (C) 2004 IBM Corp. * * based on kobject.h which was: * Copyright (C) 2002-2003 Patrick Mochel * Copyright (C) 2002-2003 Open Source Development Labs */ #ifndef _KREF_H_ #define _KREF_H_ #include #include struct kref { refcount_t refcount; }; #define KREF_INIT(n) { .refcount = REFCOUNT_INIT(n), } /** * kref_init - initialize object. * @kref: object in question. */ static inline void kref_init(struct kref *kref) { refcount_set(&kref->refcount, 1); } static inline unsigned int kref_read(const struct kref *kref) { return refcount_read(&kref->refcount); } /** * kref_get - increment refcount for object. * @kref: object. */ static inline void kref_get(struct kref *kref) { refcount_inc(&kref->refcount); } /** * kref_put - decrement refcount for object. * @kref: object. * @release: pointer to the function that will clean up the object when the * last reference to the object is released. * This pointer is required, and it is not acceptable to pass kfree * in as this function. * * Decrement the refcount, and if 0, call release(). * Return 1 if the object was removed, otherwise return 0. Beware, if this * function returns 0, you still can not count on the kref from remaining in * memo