Home
last modified time | relevance | path

Searched refs:limit (Results 1 – 25 of 70) sorted by relevance

123

/l4re-core-master/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/common/
A Dulimit.c19 struct rlimit limit; in ulimit() local
25 if (getrlimit(RLIMIT_FSIZE, &limit) == 0) in ulimit()
26 result = limit.rlim_cur / 512; /* bytes to 512 byte blocksize */ in ulimit()
32 limit.rlim_cur = RLIM_INFINITY; in ulimit()
33 limit.rlim_max = RLIM_INFINITY; in ulimit()
35 limit.rlim_cur = result * 512; in ulimit()
36 limit.rlim_max = result * 512; in ulimit()
38 result = setrlimit(RLIMIT_FSIZE, &limit); in ulimit()
/l4re-core-master/l4sys/include/cxx/
A Dipc_basics59 * \param limit The limit in bytes that must not be exceeded after adding
66 return offset + sizeof(T) <= limit;
75 * \param limit The limit in bytes that must not be exceeded after adding
92 return sizeof(T) * cnt <= limit - offset;
119 * \param limit The size limit in bytes that offset must not exceed.
122 * limit will be exceeded.
128 if (L4_UNLIKELY(!check_size<T>(offs, limit)))
140 * \param limit The size limit in bytes that offset must not exceed.
143 * limit will be exceeded.
149 if (L4_UNLIKELY(!check_size<T>(offs, limit)))
[all …]
A Dipc_server74 int get(char *msg, unsigned offset, unsigned limit)
77 int r = ct::to_svr(msg, offset, limit, this->v,
80 return Base::template get<DIR>(msg, r, limit);
85 return Base::template get<DIR>(msg, offset, limit);
94 int r = ct::from_svr(msg, offset, limit, ret, this->v,
98 return Base::template set<DIR>(msg, r, limit, ret);
124 int get(char *msg, unsigned offset, unsigned limit)
125 { return Base::template get<DIR>(msg, offset, limit); }
129 { return Base::template set<DIR>(msg, offset, limit, ret); }
162 int get(void *msg, unsigned offset, unsigned limit)
[all …]
A Dipc_array204 if (L4_UNLIKELY(!check_size<LEN>(offset, limit)))
208 if (L4_UNLIKELY(!check_size<A>(offset, limit, a.length)))
242 if (L4_UNLIKELY(!check_size<LEN>(offset, limit)))
246 if (L4_UNLIKELY(!check_size<A>(offset, limit, a.length)))
266 if (L4_UNLIKELY(!check_size<LEN>(offset, limit)))
272 if (L4_UNLIKELY(!check_size<A>(offset, limit, l)))
300 if (L4_UNLIKELY(!check_size<LEN>(offset, limit)))
306 if (L4_UNLIKELY(!check_size<A>(offset, limit, l)))
327 if (L4_UNLIKELY(!check_size<LEN>(offset, limit)))
332 a.length = (limit-offset) / sizeof(A);
[all …]
A Dipc_ret_array71 static int from_msg(char *msg, unsigned offset, unsigned limit, long ret,
76 if (L4_UNLIKELY(!check_size<A>(offset, limit, ret)))
89 static int from_svr(char *, unsigned offset, unsigned limit, long ret,
93 if (L4_UNLIKELY(!check_size<A>(offset, limit, ret)))
100 static int to_svr(char *msg, unsigned offset, unsigned limit,
103 // there can be actually no limit check here, as this
109 (limit - offset) / sizeof(A));
A Dipc_string64 static int to_svr(char *msg, unsigned offset, unsigned limit,
67 int r = Base::to_svr(msg, offset, limit, a, dir, cls);
87 static int from_msg(char *msg, unsigned offset, unsigned limit, long ret,
90 int r = Clnt_xmit<type>::from_msg(msg, offset, limit, ret, a, dir, cls);
A Dipc_iface585 write(char *base, int offset, int limit,
588 offset = xmit::to_msg(base, offset, limit, plain::deref(a),
590 return Base::template write<DIR>(base, offset, limit, m...);
595 read(char *base, int offset, int limit, long ret,
598 int r = xmit::from_msg(base, offset, limit, ret, plain::deref(a),
601 return Base::template read<DIR>(base, r, limit, ret, m...);
604 return Base::template read<DIR>(base, offset, limit, ret, m...);
616 static int write(void *b, int offset, int limit,
626 static int read(void *b, int offset, int limit, long ret,
654 static int write_op(void *b, int offset, int limit,
[all …]
A Dipc_types205 static int to_svr(char *msg, unsigned offset, unsigned limit,
212 static int from_svr(char *msg, unsigned offset, unsigned limit, long ret,
216 return Native::from_svr(msg, offset, limit, ret, arg.value(),
244 static int to_msg(char *msg, unsigned offset, unsigned limit,
248 return Native::to_msg(msg, offset, limit,
708 static int to_msg(char *msg, unsigned offset, unsigned limit,
718 return msg_add(msg, offset, limit, arg.fpage());
739 static int to_msg(char *msg, unsigned offset, unsigned limit,
744 return msg_add(msg, offset, limit, Small_buf(arg));
753 static int from_svr(char *msg, unsigned offset, unsigned limit, long,
[all …]
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/
A Dinit.c392 struct rlimit limit; in __pthread_initialize_minimal_internal() local
393 if (getrlimit (RLIMIT_STACK, &limit) != 0 in __pthread_initialize_minimal_internal()
394 || limit.rlim_cur == RLIM_INFINITY) in __pthread_initialize_minimal_internal()
397 limit.rlim_cur = ARCH_STACK_DEFAULT_SIZE; in __pthread_initialize_minimal_internal()
398 else if (limit.rlim_cur < PTHREAD_STACK_MIN) in __pthread_initialize_minimal_internal()
401 limit.rlim_cur = PTHREAD_STACK_MIN; in __pthread_initialize_minimal_internal()
407 if (limit.rlim_cur < minstack) in __pthread_initialize_minimal_internal()
408 limit.rlim_cur = minstack; in __pthread_initialize_minimal_internal()
411 limit.rlim_cur = (limit.rlim_cur + pagesz - 1) & -pagesz; in __pthread_initialize_minimal_internal()
412 __default_stacksize = limit.rlim_cur; in __pthread_initialize_minimal_internal()
/l4re-core-master/lua/lib/contrib/src/
A Dlmem.c80 int size_elems, int limit, const char *what) { in luaM_growaux_() argument
85 if (size >= limit / 2) { /* cannot double it? */ in luaM_growaux_()
86 if (l_unlikely(size >= limit)) /* cannot grow even a little? */ in luaM_growaux_()
87 luaG_runerror(L, "too many %s (limit is %d)", what, limit); in luaM_growaux_()
88 size = limit; /* still have at least one free place */ in luaM_growaux_()
95 lua_assert(nelems + 1 <= size && size <= limit); in luaM_growaux_()
A Dltable.c913 unsigned int limit = t->alimit; in luaH_getn() local
914 if (limit > 0 && isempty(&t->array[limit - 1])) { /* (1)? */ in luaH_getn()
916 if (limit >= 2 && !isempty(&t->array[limit - 2])) { in luaH_getn()
919 t->alimit = limit - 1; in luaH_getn()
922 return limit - 1; in luaH_getn()
938 return limit; /* this is the boundary */ in luaH_getn()
940 limit = luaH_realasize(t); in luaH_getn()
951 lua_assert(limit == luaH_realasize(t) && in luaH_getn()
952 (limit == 0 || !isempty(&t->array[limit - 1]))); in luaH_getn()
954 return limit; /* 'limit + 1' is absent */ in luaH_getn()
[all …]
A Dlmem.h66 #define luaM_growvector(L,v,nelems,size,t,limit,e) \ argument
68 luaM_limitN(limit,t),e)))
86 int *size, int size_elem, int limit,
/l4re-core-master/moe/server/src/
A Dquota.h34 explicit Quota(size_t limit) : _limit(limit), _used(0) {} in Quota() argument
52 size_t limit() const { return _limit; } in limit() function
118 Q_alloc(size_t limit) : _quota(limit) {} in Q_alloc() argument
A Dalloc.cc259 if (_qalloc.quota()->limit() == (size_t)~0) in op_debug()
264 _qalloc.quota()->limit(), _qalloc.quota()->limit() / (1<<20), in op_debug()
266 _qalloc.quota()->limit() - _qalloc.quota()->used(), in op_debug()
267 (_qalloc.quota()->limit() - _qalloc.quota()->used()) / (1<<20)); in op_debug()
A Dalloc.h37 explicit Allocator(size_t limit, unsigned prio_limit = 0)
38 : _qalloc(limit), _sched_prio_limit(prio_limit) in _qalloc() argument
A Dsched_proxy.h45 void set_prio(unsigned offs, unsigned limit) in set_prio() argument
46 { _prio_offset = offs; _prio_limit = limit; } in set_prio()
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/misc/gnu/
A Dobstack.c197 h->chunk_limit = chunk->limit
245 h->chunk_limit = chunk->limit in _obstack_begin_1()
282 new_chunk->limit = h->chunk_limit = (char *) new_chunk + new_size; in _obstack_newchunk()
345 while (lp != 0 && ((void *) lp >= obj || (void *) (lp)->limit < obj)) in _obstack_allocated_p()
368 while (lp != 0 && ((void *) lp >= obj || (void *) (lp)->limit < obj)) in obstack_free()
380 h->chunk_limit = lp->limit; in obstack_free()
402 nbytes += lp->limit - (char *) lp; in _obstack_memory_used()
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/linuxthreads/
A Dpthread.c412 struct rlimit limit; in __pthread_init_max_stacksize() local
415 getrlimit(RLIMIT_STACK, &limit); in __pthread_init_max_stacksize()
417 if (limit.rlim_cur == RLIM_INFINITY) in __pthread_init_max_stacksize()
420 max_stack = limit.rlim_cur / 2; in __pthread_init_max_stacksize()
422 max_stack = limit.rlim_cur; in __pthread_init_max_stacksize()
434 if (limit.rlim_cur > max_stack) { in __pthread_init_max_stacksize()
435 limit.rlim_cur = max_stack; in __pthread_init_max_stacksize()
436 setrlimit(RLIMIT_STACK, &limit); in __pthread_init_max_stacksize()
1130 struct rlimit limit; in __pthread_reset_main_thread() local
1132 && limit.rlim_cur != limit.rlim_max) in __pthread_reset_main_thread()
[all …]
/l4re-core-master/uclibc/lib/libpthread/src/
A Dpthread.c499 struct rlimit limit; in __pthread_init_max_stacksize() local
504 getrlimit(RLIMIT_STACK, &limit); in __pthread_init_max_stacksize()
506 if (limit.rlim_cur == RLIM_INFINITY) in __pthread_init_max_stacksize()
509 max_stack = limit.rlim_cur / 2; in __pthread_init_max_stacksize()
511 max_stack = limit.rlim_cur; in __pthread_init_max_stacksize()
523 if (limit.rlim_cur > max_stack) { in __pthread_init_max_stacksize()
524 limit.rlim_cur = max_stack; in __pthread_init_max_stacksize()
525 setrlimit(RLIMIT_STACK, &limit); in __pthread_init_max_stacksize()
1250 struct rlimit limit; in __pthread_reset_main_thread() local
1252 && limit.rlim_cur != limit.rlim_max) in __pthread_reset_main_thread()
[all …]
/l4re-core-master/l4util/include/ARCH-amd64/
A Didt.h42 l4_uint16_t limit; /**< limit field (see Intel doc) */ member
67 idt->limit = entries*8 - 1; in l4util_idt_init()
/l4re-core-master/l4util/include/ARCH-x86/
A Didt.h42 l4_uint16_t limit; /**< limit field (see Intel doc) */ member
67 idt->limit = entries*8 - 1; in l4util_idt_init()
/l4re-core-master/uclibc/lib/contrib/uclibc/extra/scripts/
A Dcppcheck.sh49 [ "x$limit" = "x" ] && limit="$i" || limit="$limit $i" ;;
/l4re-core-master/l4sys/include/
A Dfactory.h140 unsigned long limit) L4_NOTHROW;
150 unsigned long limit, l4_utcb_t *utcb) L4_NOTHROW;
308 l4_cap_idx_t target_cap, unsigned long limit, in l4_factory_create_factory_u() argument
313 l4_factory_create_add_uint_u(limit, &t, u); in l4_factory_create_factory_u()
374 l4_cap_idx_t target_cap, unsigned long limit) L4_NOTHROW in l4_factory_create_factory() argument
377 return l4_factory_create_factory_u(factory, target_cap, limit, l4_utcb()); in l4_factory_create_factory()
/l4re-core-master/libkproxy/lib/src/
A Dfactory_svr.cc35 unsigned long limit; in handle_factory() local
39 ios >> limit; in handle_factory()
40 int r = fi->create_factory(f, limit); in handle_factory()
/l4re-core-master/moe/doc/
A Dmoe.dox74 * - L4::Scheduler `(l4_mword_t limit, l4_mword_t offset,
76 * - Argument `limit`: maximum priority
79 * - Argument `limit` must be greater than `offset`
82 * - Argument `quota`: limit in bytes (not zero)
83 * - The limit is deducted from the limit of the factory that creates

Completed in 121 milliseconds

123