Server IP : 103.169.32.36 / Your IP : 216.73.217.13 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.119.1.el7.x86_64/build/scripts/kconfig/ |
Upload File : |
| Current File : /usr/lib/modules/3.10.0-1160.119.1.el7.x86_64/build/scripts/kconfig/list.h |
#ifndef LIST_H
#define LIST_H
/*
* Copied from include/linux/...
*/
#undef offsetof
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
/**
* container_of - cast a member of a structure out to the containing structure
* @ptr: the pointer to the member.
* @type: the type of the container struct this is embedded in.
* @member: the name of the member within the struct.
*
*/
#define container_of(ptr, type, member) ({ \
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
(type *)( (char *)__mptr - offsetof(type,member) );})
struct list_head {
struct list_head *next, *prev;
};
#define LIST_HEAD_INIT(name) { &(name), &(name) }
#define LIST_HEAD(name) \
struct list_head name = LIST_HEAD_INIT(name)
/**
* list_entry - get the struct for this entry
* @ptr: the &struct list_head pointer.
* @type: the type of the struct this is embedded in.
* @member: the name of the list_struct within the struct.
*/
#define list_entry(ptr, type, member) \
container_of(ptr, type, member)
/**
* list_for_each_entry - iterate over list of given type
* @pos: the type * to use as a loop cursor.
* @head: the head for your list.
* @member: the name of the list_struct within the struct.
*/
#define list_for_each_entry(pos, head, member) \
for (pos = list_entry((head)->next, typeof(*pos), member); \
&pos->member != (head); \
pos = list_entry(pos->member.next, typeof(*pos), member))
/**
* list_for_each_entry_safe - iterate over list of given type safe against removal of list entry
* @pos: the type * to use as a loop cursor.
* @n: another type * to use as temporary storage
* @head: the head for your list.
* @member: the name of the list_struct within the struct.
*/
#define list_for_each_entry_safe(pos, n, head, member) \
for (pos = list_entry((head)->next, typeof(*pos), member), \
n = list_entry(pos->member.next, typeof(*pos), member); \
&pos->member != (head); \
pos = n, n = list_entry(n->member.next, typeof(*n), member))
/**
* list_empty - tests whether a list is empty
* @head: the list to test.
*/
static inline int list_empty(const struct list_head *head)
{
return head->next == head;
}
/*
* Insert a new entry between two known consecutive entries.
*
* This is only for internal list manipulation where we know
* the prev/next entries already!
*/
static inline void __list_add(struct list_head *_new,
struct list_head *prev,
struct list_head *next)
{
next->prev = _new;
_new->next = next;
_new->prev = prev;
prev->next = _new;
}
/**
* list_add_tail - add a new entry
* @new: new entry to be added
* @head: list head to add it before
*
* Insert a new entry before the specified head.
* This is useful for implementing queues.
*/
static inline void list_add_tail(struct list_head *_new, struct list_head *head)
{
__list_add(_new, head->prev, head);
}
/*
* Delete a list entry by making the prev/next entries
* point to each other.
*
* This is only for internal list manipulation where we know
* the prev/next entries already!
*/
static inline void __list_del(struct list_head *prev, struct list_head *next)
{
next->prev = prev;
prev->next = next;
}
#define LIST_POISON1 ((void *) 0x00100100)
#define LIST_POISON2 ((void *) 0x00200200)
/**
* list_del - deletes entry from list.
* @entry: the element to delete from the list.
* Note: list_empty() on entry does not return true after this, the entry is
* in an undefined state.
*/
static inline void list_del(struct list_head *entry)
{
__list_del(entry->prev, entry->next);
entry->next = (struct list_head*)LIST_POISON1;
entry->prev = (struct list_head*)LIST_POISON2;
}
#endif
| N4m3 |
5!z3 |
L45t M0d!f!3d |
0wn3r / Gr0up |
P3Rm!55!0n5 |
0pt!0n5 |
| .. |
-- |
September 29 2025 07:01:30 |
0 / 0 |
0755 |
|
| lxdialog |
-- |
September 29 2025 07:01:30 |
0 / 0 |
0755 |
|
| | | | | |
| Makefile |
11.104 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| POTFILES.in |
0.353 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| check.sh |
0.21 KB |
November 06 2023 09:15:52 |
0 / 0 |
0755 |
|
| conf |
95.906 KB |
June 04 2024 14:55:43 |
0 / 0 |
0755 |
|
| conf.c |
15.527 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| confdata.c |
24.894 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| expr.c |
29.372 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| expr.h |
7.245 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| gconf.c |
38.813 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| gconf.glade |
25.041 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| images.c |
6.411 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| kxgettext.c |
4.098 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| list.h |
3.629 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| lkc.h |
4.856 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| lkc_proto.h |
2.435 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| mconf.c |
27.301 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| menu.c |
16.995 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| merge_config.sh |
3.754 KB |
November 06 2023 09:15:52 |
0 / 0 |
0755 |
|
| nconf.c |
37.992 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| nconf.gui.c |
14.446 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| nconf.h |
1.871 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| qconf.cc |
43.369 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| qconf.h |
7.746 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| streamline_config.pl |
14.591 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| symbol.c |
27.878 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| util.c |
3.084 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| zconf.gperf |
1.453 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| zconf.hash.c |
12.359 KB |
December 07 2023 15:38:47 |
0 / 0 |
0644 |
|
| zconf.hash.c_shipped |
12.359 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| zconf.l |
6.861 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| zconf.lex.c |
58.458 KB |
December 07 2023 15:38:47 |
0 / 0 |
0644 |
|
| zconf.lex.c_shipped |
58.458 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| zconf.tab.c |
70.232 KB |
December 07 2023 15:38:47 |
0 / 0 |
0644 |
|
| zconf.tab.c_shipped |
70.232 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|
| zconf.y |
15.735 KB |
November 06 2023 09:15:52 |
0 / 0 |
0644 |
|