---
name: "bio_associate_blkcg"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/bio_associate_blkcg"
---

# bio\_associate\_blkcg(9)

associate a bio with the specified blkcg

## NAME

bio\_associate\_blkcg - associate a bio with the specified blkcg

## SYNOPSIS

**int bio\_associate\_blkcg(struct bio \*** *bio***, struct cgroup\_subsys\_state \*** *blkcg\_css***);**

## ARGUMENTS

*bio*

target bio

*blkcg\_css*

css of the blkcg to associate

## DESCRIPTION

Associate *bio* with the blkcg specified by *blkcg\_css*. Block layer will treat *bio* as if it were issued by a task which belongs to the blkcg.

This function takes an extra reference of *blkcg\_css* which will be put when *bio* is released. The caller must own *bio* and is responsible for synchronizing calls to this function.

## COPYRIGHT
