ice_ptg_attr_in_use(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ice_ptg_attr_in_use(9) β€” the Kernel API Manual page, bestie edition πŸ’–

okay so bestie, welcome to the group chat for ice_ptg_attr_in_use, straight out of the Kernel API Manual. this is the little function that does a vibe check on whether a PTG + attribute pair is already taken. that's it, that's the whole job. slay.


✨ NAME ✨

ice_ptg_attr_in_use β€” determine if PTG and attribute pair is in use 🫢

like literally, it looks at a PTG/attribute pair and is like "girl, are you in use or not."


🌸 SYNOPSIS 🌸

bool ice_ptg_attr_in_use (struct ice_tcam_inf *ptg_attr , unsigned long
*ptgs_used , struct ice_tcam_inf *attr_used[] , u16 attr_cnt );
ngl those spaces before the commas are just how she signs her name. do not fix her. this is her aesthetic. πŸ’…

πŸŽ€ ARGUMENTS πŸŽ€

  • ptg_attr β€” pointer to the PTG and attribute pair you're checking up on. the main character of this whole operation, honestly πŸ‘‘
  • ptgs_used β€” bitmap that denotes which PTGs are in use. think of it as the "who's already at the party" list ✨
  • attr_used β€” array of PTG and attributes pairs already used. the guest list that's already been checked off πŸ“‹
  • attr_cnt β€” count of entries in the attr_used array. like, how many names are actually on that guest list, fr fr πŸ”’

πŸ¦‹ RETURN πŸ¦‹

true if the PTG and attribute pair is in use, false otherwise.

so: true = taken, false = the coast is clear. that's the whole tea β˜• periodt.


🌈 SEE ALSO 🌈

bestie she has SO many friends, she's literally the most connected function in the whole file. first up, her home base:

Kernel file ./drivers/net/ethernet/intel/ice/ice_flex_pipe.c

and now the whole extended friend group, gonna need a bigger group chat πŸ’€

ice_sect_id(9), ice_hw_ptype_ena(9), ice_gen_key_word(9), ice_bits_max_set(9), ice_set_key(9), ice_acquire_change_lock(9), ice_release_change_lock(9), ice_get_open_tunnel_port(9), ice_upd_dvm_boost_entry(9), ice_set_dvm_boost_entries(9), ice_tunnel_idx_to_entry(9), ice_create_tunnel(9), ice_destroy_tunnel(9), ice_find_prot_off(9), ice_ptg_find_ptype(9), ice_ptg_alloc_val(9), ice_ptg_remove_ptype(9), ice_ptg_add_mv_ptype(9), ice_match_prop_lst(9), ice_vsig_find_vsi(9), ice_vsig_alloc_val(9), ice_vsig_alloc(9), ice_find_dup_props_vsig(9), ice_vsig_free(9), ice_vsig_remove_vsi(9), ice_vsig_add_mv_vsi(9), ice_prof_has_mask_idx(9), ice_prof_has_mask(9), ice_find_prof_id_with_mask(9), ice_prof_id_rsrc_type(9), ice_tcam_ent_rsrc_type(9), ice_alloc_tcam_ent(9), ice_free_tcam_ent(9), ice_alloc_prof_id(9), ice_free_prof_id(9), ice_prof_inc_ref(9), ice_write_prof_mask_reg(9), ice_write_prof_mask_enable_res(9), ice_init_prof_masks(9), ice_init_all_prof_masks(9), ice_alloc_prof_mask(9), ice_free_prof_mask(9), ice_free_prof_masks(9), ice_shutdown_prof_masks(9), ice_shutdown_all_prof_masks(9), ice_update_prof_masking(9), ice_write_es(9), ice_prof_dec_ref(9), ice_init_sw_xlt1_db(9), ice_init_sw_xlt2_db(9), ice_init_sw_db(9), ice_fill_tbl(9), ice_fill_blk_tbls(9), ice_free_prof_map(9), ice_free_flow_profs(9), ice_free_vsig_tbl(9), ice_free_hw_tbls(9), ice_init_flow_profs(9), ice_clear_hw_tbls(9), ice_init_hw_tbls(9), ice_prof_gen_key(9), ice_tcam_write_entry(9), ice_vsig_get_ref(9), ice_has_prof_vsig(9), ice_prof_bld_es(9), ice_prof_bld_tcam(9), ice_prof_bld_xlt1(9), ice_prof_bld_xlt2(9), ice_upd_prof_hw(9), ice_update_fd_mask(9), ice_update_fd_swap(9), ice_get_ptype_attrib_info(9), ice_add_prof_attrib(9), ice_disable_fd_swap(9), ice_search_prof_id(9), ice_vsig_prof_id_count(9), ice_rel_tcam_idx(9), ice_rem_prof_id(9), ice_rem_vsig(9), ice_rem_prof_id_vsig(9), ice_rem_flow_all(9), ice_rem_prof(9), ice_get_prof(9), ice_get_profs_vsig(9), ice_add_prof_to_lst(9), ice_move_vsi(9), ice_set_tcam_flags(9), ice_rem_chg_tcam_ent(9), ice_prof_tcam_ena_dis(9), ice_adj_prof_priorities(9), ice_add_prof_id_vsig(9), ice_create_prof_id_vsig(9), ice_create_vsig_from_lst(9), ice_find_prof_vsig(9), ice_add_prof_id_flow(9), ice_flow_assoc_fdir_prof(9), ice_rem_prof_from_list(9), ice_rem_prof_id_flow(9)

like. ninety-something besties. she's booked and busy πŸ’…βœ¨


okay real talk, one technical thing: this page lives under ./drivers/net/ethernet/intel/ice β€” that's the source tree, that's where she lives. don't come for me if you can't find her there, that's literally just where the manpage says 🫢

and that's the page!! mwah πŸ’– this iconic little section-9 moment was brought to you by the source tree ./drivers/net/ethernet/intel/ice, dated October 2026, and honestly? she ate. no cap. πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from