/freebsd/lib/libcasper/services/cap_fileargs/ |
H A D | cap_fileargs.c | 168 nvlist_t *limits; in fileargs_create_limit() local 171 limits = nvlist_create(NV_FLAG_NO_UNIQUE); in fileargs_create_limit() 172 if (limits == NULL) in fileargs_create_limit() 175 nvlist_add_number(limits, "flags", flags); in fileargs_create_limit() 176 nvlist_add_number(limits, "operations", operations); in fileargs_create_limit() 178 nvlist_add_binary(limits, "cap_rights", rightsp, in fileargs_create_limit() 182 nvlist_add_number(limits, "mode", (uint64_t)mode); in fileargs_create_limit() 186 nvlist_destroy(limits); in fileargs_create_limit() 190 nvlist_add_null(limits, argv[i]); in fileargs_create_limit() 193 return (limits); in fileargs_create_limit() [all …]
|
H A D | cap_fileargs.h | 53 fileargs_t *fileargs_initnv(nvlist_t *limits); 54 fileargs_t *fileargs_cinitnv(cap_channel_t *cas, nvlist_t *limits); 96 fileargs_initnv(nvlist_t *limits) 101 nvlist_get_number(limits, "flags"), 102 dnvlist_get_number(limits, "mode", 0), 104 nvlist_get_number(limits, "operations")); 105 nvlist_destroy(limits); 111 fileargs_cinitnv(cap_channel_t *cas __unused, nvlist_t *limits) 114 return (fileargs_initnv(limits));
|
/freebsd/usr.bin/limits/tests/ |
H A D | limits_test.sh | 56 limits -H -t 3 limits -H 58 limits -H -t 3 limits -S 60 limits -H -t 3 $TIME -p sh -c 'while : ; do : ; done' 75 limits -S -t 3 limits -H 77 limits -S -t 3 limits -S 79 limits -S -t 3 $TIME -p sh -c 'while : ; do : ; done'
|
/freebsd/usr.bin/limits/ |
H A D | limits.c | 286 struct rlimit limits[RLIM_NLIMITS]; in main() local 375 getrlimit(i, &limits[i]); in main() 377 getrlimit_proc(pid, i, &limits[i]); in main() 379 getrlimit_proc(pid, i, &limits[i]); in main() 402 …val = resources[rcswhich].func(lc, resources[rcswhich].cap, limits[rcswhich].rlim_cur, limits[rcsw… in main() 403 limits[rcswhich].rlim_cur = resources[rcswhich].func(lc, str, val, val); in main() 406 …val = resources[rcswhich].func(lc, resources[rcswhich].cap, limits[rcswhich].rlim_max, limits[rcsw… in main() 407 limits[rcswhich].rlim_max = resources[rcswhich].func(lc, str, val, val); in main() 424 if (limits[rcswhich].rlim_max != RLIM_INFINITY) { in main() 425 if (limits[rcswhich].rlim_cur == RLIM_INFINITY) { in main() [all …]
|
/freebsd/sys/dev/mthca/ |
H A D | mthca_main.c | 169 mdev->limits.mtt_seg_size = (1 << log_mtts_per_seg) * 8; in mthca_dev_lim() 197 mdev->limits.num_ports = dev_lim->num_ports; in mthca_dev_lim() 198 mdev->limits.vl_cap = dev_lim->max_vl; in mthca_dev_lim() 199 mdev->limits.mtu_cap = dev_lim->max_mtu; in mthca_dev_lim() 200 mdev->limits.gid_table_len = dev_lim->max_gids; in mthca_dev_lim() 201 mdev->limits.pkey_table_len = dev_lim->max_pkeys; in mthca_dev_lim() 202 mdev->limits.local_ca_ack_delay = dev_lim->local_ca_ack_delay; in mthca_dev_lim() 208 mdev->limits.max_sg = min_t(int, dev_lim->max_sg, in mthca_dev_lim() 215 mdev->limits.max_wqes = dev_lim->max_qp_sz; in mthca_dev_lim() 216 mdev->limits.max_qp_init_rdma = dev_lim->max_requester_per_qp; in mthca_dev_lim() [all …]
|
H A D | mthca_profile.c | 96 profile[MTHCA_RES_MTT].size = dev->limits.mtt_seg_size; in mthca_make_profile() 175 dev->limits.num_qps = profile[i].num; in mthca_make_profile() 180 dev->limits.num_eecs = profile[i].num; in mthca_make_profile() 185 dev->limits.num_srqs = profile[i].num; in mthca_make_profile() 190 dev->limits.num_cqs = profile[i].num; in mthca_make_profile() 201 dev->limits.num_eqs = profile[i].num; in mthca_make_profile() 214 dev->limits.num_mgms = profile[i].num >> 1; in mthca_make_profile() 215 dev->limits.num_amgms = profile[i].num >> 1; in mthca_make_profile() 222 dev->limits.num_mpts = profile[i].num; in mthca_make_profile() 228 dev->limits.num_mtt_segs = profile[i].num; in mthca_make_profile() [all …]
|
H A D | mthca_mr.c | 223 for (i = dev->limits.mtt_seg_size / 8; i < size; i <<= 1) in __mthca_alloc_mtt() 269 mtt->first_seg * dev->limits.mtt_seg_size + in __mthca_write_mtt() 322 mtts = dev->mr_table.tavor_fmr.mtt_base + mtt->first_seg * dev->limits.mtt_seg_size + in mthca_tavor_write_mtt_seg() 341 BUG_ON(s % dev->limits.mtt_seg_size); in mthca_arbel_write_mtt_seg() 344 s / dev->limits.mtt_seg_size, &dma_handle); in mthca_arbel_write_mtt_seg() 478 mr->mtt->first_seg * dev->limits.mtt_seg_size); in mthca_mr_alloc() 492 key & (dev->limits.num_mpts - 1)); in mthca_mr_alloc() 559 (dev->limits.num_mpts - 1)); in mthca_free_mr() 593 idx = key & (dev->limits.num_mpts - 1); in mthca_fmr_alloc() 613 mtt_seg = mr->mtt->first_seg * dev->limits.mtt_seg_size; in mthca_fmr_alloc() [all …]
|
H A D | mthca_provider.c | 96 props->page_size_cap = mdev->limits.page_size_cap; in mthca_query_device() 97 props->max_qp = mdev->limits.num_qps - mdev->limits.reserved_qps; in mthca_query_device() 98 props->max_qp_wr = mdev->limits.max_wqes; in mthca_query_device() 99 props->max_sge = mdev->limits.max_sg; in mthca_query_device() 101 props->max_cq = mdev->limits.num_cqs - mdev->limits.reserved_cqs; in mthca_query_device() 102 props->max_cqe = mdev->limits.max_cqes; in mthca_query_device() 103 props->max_mr = mdev->limits.num_mpts - mdev->limits.reserved_mrws; in mthca_query_device() 104 props->max_pd = mdev->limits.num_pds - mdev->limits.reserved_pds; in mthca_query_device() 106 props->max_qp_init_rd_atom = mdev->limits.max_qp_init_rdma; in mthca_query_device() 108 props->max_srq = mdev->limits.num_srqs - mdev->limits.reserved_srqs; in mthca_query_device() [all …]
|
H A D | mthca_srq.c | 209 if (attr->max_wr > dev->limits.max_srq_wqes || in mthca_alloc_srq() 210 attr->max_sge > dev->limits.max_srq_sge) in mthca_alloc_srq() 226 if (!mthca_is_memfree(dev) && (ds > dev->limits.max_desc_sz)) in mthca_alloc_srq() 279 srq->srqn & (dev->limits.num_srqs - 1), in mthca_alloc_srq() 349 srq->srqn & (dev->limits.num_srqs - 1)); in mthca_free_srq() 431 srq = mthca_array_get(&dev->srq_table.srq, srqn & (dev->limits.num_srqs - 1)); in mthca_srq_event() 645 return dev->limits.max_sg; in mthca_max_srq_sge() 661 return min_t(int, dev->limits.max_sg, in mthca_max_srq_sge() 662 ((1 << (fls(dev->limits.max_desc_sz) - 1)) - in mthca_max_srq_sge() 677 dev->limits.num_srqs, in mthca_init_srq_table() [all …]
|
H A D | mthca_uar.c | 57 dev->limits.num_uars, in mthca_init_uar_table() 58 dev->limits.num_uars - 1, in mthca_init_uar_table() 59 dev->limits.reserved_uars + 1); in mthca_init_uar_table()
|
H A D | mthca_qp.c | 245 qp = mthca_array_get(&dev->qp_table.qp, qpn & (dev->limits.num_qps - 1)); in mthca_qp_event() 317 param.port_width = dev->limits.port_width_cap; in init_port() 318 param.vl_cap = dev->limits.vl_cap; in init_port() 319 param.mtu_cap = dev->limits.mtu_cap; in init_port() 320 param.gid_cap = dev->limits.gid_table_len; in init_port() 321 param.pkey_cap = dev->limits.pkey_table_len; in init_port() 403 if (ib_ah_attr->port_num == 0 || ib_ah_attr->port_num > dev->limits.num_ports) in to_ib_ah_attr() 414 ib_ah_attr->grh.sgid_index = path->mgid_index & (dev->limits.gid_table_len - 1); in to_ib_ah_attr() 524 if (ah->grh.sgid_index >= dev->limits.gid_table_len) { in mthca_path_set() 526 ah->grh.sgid_index, dev->limits.gid_table_len-1); in mthca_path_set() [all …]
|
/freebsd/contrib/netbsd-tests/bin/sh/ |
H A D | t_ulimit.sh | 32 atf_test_case limits 38 local limits=$(${TEST_SH} -c 'ulimit -a' | 40 if [ -z "$limits" ]; then 42 limits="-a -b -c -d -f -l -m -n -p -r -s -t -v" 44 echo "$limits" 56 atf_add_test_case limits
|
/freebsd/lib/libcasper/services/cap_net/ |
H A D | cap_net.c | 604 net_allowed_mode(const nvlist_t *limits, uint64_t mode) in net_allowed_mode() argument 607 if (limits == NULL) in net_allowed_mode() 610 return ((nvlist_get_number(limits, "mode") & mode) == mode); in net_allowed_mode() 614 net_allowed_family(const nvlist_t *limits, int family) in net_allowed_family() argument 619 if (limits == NULL) in net_allowed_family() 623 if (!nvlist_exists_number_array(limits, "family")) in net_allowed_family() 626 allowedfamily = nvlist_get_number_array(limits, "family", &allsize); in net_allowed_family() 695 net_allowed_bsaddr(const nvlist_t *limits, const void *saddr, size_t saddrsize) in net_allowed_bsaddr() argument 698 if (limits == NULL) in net_allowed_bsaddr() 701 if (!nvlist_exists_nvlist(limits, "sockaddr")) in net_allowed_bsaddr() [all …]
|
/freebsd/lib/libcasper/services/cap_syslog/ |
H A D | cap_syslog.c | 138 slog_vsyslog(const nvlist_t *limits __unused, const nvlist_t *nvlin, in slog_vsyslog() 147 slog_openlog(const nvlist_t *limits __unused, const nvlist_t *nvlin, in slog_openlog() 176 slog_closelog(const nvlist_t *limits __unused, const nvlist_t *nvlin __unused, in slog_closelog() 193 slog_setlogmask(const nvlist_t *limits __unused, const nvlist_t *nvlin, in slog_setlogmask() 203 syslog_command(const char *cmd, const nvlist_t *limits, nvlist_t *nvlin, in syslog_command() argument 208 slog_vsyslog(limits, nvlin, nvlout); in syslog_command() 210 slog_openlog(limits, nvlin, nvlout); in syslog_command() 212 slog_closelog(limits, nvlin, nvlout); in syslog_command() 214 slog_setlogmask(limits, nvlin, nvlout); in syslog_command()
|
/freebsd/contrib/llvm-project/libcxx/include/ |
H A D | limits.h |
|
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zvol_os.c | 1117 zvol_queue_limits_init(zvol_queue_limits_t *limits, zvol_state_t *zv, in zvol_queue_limits_init() argument 1120 limits->zql_max_hw_sectors = (DMU_MAX_ACCESS / 4) >> 9; in zvol_queue_limits_init() 1163 limits->zql_max_segment_size = PAGE_SIZE; in zvol_queue_limits_init() 1164 limits->zql_max_segments = in zvol_queue_limits_init() 1171 limits->zql_max_segments = UINT16_MAX; in zvol_queue_limits_init() 1172 limits->zql_max_segment_size = UINT_MAX; in zvol_queue_limits_init() 1175 limits->zql_max_segments = UINT16_MAX; in zvol_queue_limits_init() 1176 limits->zql_max_segment_size = UINT_MAX; in zvol_queue_limits_init() 1179 limits->zql_io_opt = zv->zv_volblocksize; in zvol_queue_limits_init() 1181 limits->zql_physical_block_size = zv->zv_volblocksize; in zvol_queue_limits_init() [all …]
|
/freebsd/contrib/llvm-project/libcxx/modules/std/ |
H A D | limits.cppm |
|
/freebsd/lib/libcasper/libcasper/ |
H A D | libcasper.c | 228 cap_limit_set(const cap_channel_t *chan, nvlist_t *limits) in cap_limit_set() argument 235 nvlist_add_nvlist(nvlmsg, "limits", limits); in cap_limit_set() 238 nvlist_destroy(limits); in cap_limit_set() 243 nvlist_destroy(limits); in cap_limit_set() 350 nvlist_t *limits; in cap_service_limit() local 353 limits = nvlist_create(channel_nvlist_flags(chan)); in cap_service_limit() 355 nvlist_add_null(limits, names[i]); in cap_service_limit() 356 return (cap_limit_set(chan, limits)); in cap_service_limit()
|
H A D | libcasper_service.c | 107 casper_allowed_service(const nvlist_t *limits, const char *service) in casper_allowed_service() argument 110 if (limits == NULL) in casper_allowed_service() 113 if (nvlist_exists_null(limits, service)) in casper_allowed_service() 165 casper_command(const char *cmd, const nvlist_t *limits, nvlist_t *nvlin, in casper_command() argument 183 if (!casper_allowed_service(limits, servname)) in casper_command()
|
/freebsd/contrib/netbsd-tests/lib/libc/gen/ |
H A D | t_assert.c | 49 struct rlimit limits; in disable_corefile() local 51 limits.rlim_cur = 0; in disable_corefile() 52 limits.rlim_max = 0; in disable_corefile() 54 ATF_REQUIRE(setrlimit(RLIMIT_CORE, &limits) == 0); in disable_corefile()
|
/freebsd/usr.bin/getconf/ |
H A D | Makefile | 5 SRCS= confstr.c getconf.c limits.c pathconf.c progenv.c sysconf.c \ 8 CLEANFILES+= confstr.c limits.c pathconf.c progenv.c sysconf.c \ 9 confstr.names limits.names pathconf.names sysconf.names \ 33 conflicting.names: confstr.names limits.names sysconf.names
|
/freebsd/sys/dev/sfxge/ |
H A D | sfxge.c | 122 efx_drv_limits_t limits; in sfxge_estimate_rsrc_limits() local 147 memset(&limits, 0, sizeof(limits)); in sfxge_estimate_rsrc_limits() 149 limits.edl_min_evq_count = 1; in sfxge_estimate_rsrc_limits() 150 limits.edl_max_evq_count = evq_max; in sfxge_estimate_rsrc_limits() 151 limits.edl_min_txq_count = SFXGE_EVQ0_N_TXQ(sc); in sfxge_estimate_rsrc_limits() 152 limits.edl_max_txq_count = evq_max + SFXGE_EVQ0_N_TXQ(sc) - 1; in sfxge_estimate_rsrc_limits() 153 limits.edl_min_rxq_count = 1; in sfxge_estimate_rsrc_limits() 154 limits.edl_max_rxq_count = evq_max; in sfxge_estimate_rsrc_limits() 156 efx_nic_set_drv_limits(sc->enp, &limits); in sfxge_estimate_rsrc_limits() 197 efx_drv_limits_t limits; in sfxge_set_drv_limits() local [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Headers/ |
H A D | limits.h | 12 #if defined(__MVS__) && __has_include_next(<limits.h>) 13 #include_next <limits.h> 24 #if __STDC_HOSTED__ && __has_include_next(<limits.h>) 25 #include_next <limits.h>
|
/freebsd/sys/dev/sfxge/common/ |
H A D | mcdi_mon.c | 367 efx_mon_stat_limits_t *limits) 378 EFSYS_ASSERT(limits != NULL); 380 memset(limits, 0, 415 limits->emlv_warning_min = EFX_QWORD_FIELD(*limit_info, 418 limits->emlv_warning_max = EFX_QWORD_FIELD(*limit_info, 421 limits->emlv_fatal_min = EFX_QWORD_FIELD(*limit_info, 424 limits->emlv_fatal_max = EFX_QWORD_FIELD(*limit_info, 427 limits++; 508 efx_mon_stat_limits_t limits[sizeof (page_mask) * 8]; in mcdi_mon_limits_update() local 516 rc = efx_mcdi_sensor_info_page(enp, page, &page_mask, limits); in mcdi_mon_limits_update() [all …]
|
/freebsd/tools/build/cross-build/include/linux/ |
H A D | limits.h | 36 #if __has_include_next(<limits.h>) 37 #include_next <limits.h> 40 #if __has_include(<linux/limits.h>)
|