pintos icon indicating copy to clipboard operation
pintos copied to clipboard

What does this 'elem' means?

Open C-SunRay opened this issue 3 years ago • 2 comments

wonder what ‘elem’ represents in this‘ I find no declare of this. image

C-SunRay avatar Dec 25 '21 10:12 C-SunRay

may be it is a linked list of strcut pointer(thread)

fengxiaohu avatar Jul 16 '23 09:07 fengxiaohu

It means one attribute in struct thread definition, like:

struct thread { tid_t tid; char name[16]; struct list_elem elem; unsigned magic; }

elem means the attribute named "elem" in your struct thread.

Wangch29 avatar Feb 16 '24 04:02 Wangch29